RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login

    Editing CPP file

    Scheduled Pinned Locked Moved ControlBlock, PowerBlock & Co.
    switchcontrolblock
    3 Posts 2 Posters 890 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      dantropie
      last edited by

      Ok. So my pi was taking 4 min to shut off when I clicked my button on my controlblock. The PowerSwitch.cpp file had t -3. So I edited it to shut off now. I saved the cpp file via sudo nano PowerSwitch.cpp. Question. What do I do next to make it work. Compile it somehow? I don't know Linux. Editing the file did nothing. I think I'm missing a step. Anyone know? Thanks so much!!0

      1 Reply Last reply Reply Quote 0
      • P
        petrockblog Global Moderator
        last edited by

        you can re-run make to recompile the driver, followed by sudo make install and sudo make installservice.

        Alternative, you download and install the latest driver version. It has fixed the 3-4 Minute delay as well.

        D 1 Reply Last reply Reply Quote 0
        • D
          dantropie @petrockblog
          last edited by

          @petrockblog it worked!!! Thank you!!!

          1 Reply Last reply Reply Quote 0
          • First post
            Last post

          Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.

          Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.