MCPcopy Create free account
hub / github.com/crosspoint-reader/crosspoint-reader / waitForPowerRelease

Function waitForPowerRelease

src/main.cpp:205–211  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

203 }
204}
205void waitForPowerRelease() {
206 gpio.update();
207 while (gpio.isPressed(HalGPIO::BTN_POWER)) {
208 delay(50);
209 gpio.update();
210 }
211}
212
213constexpr char SLEEP_FRAME_FILE[] = "/.crosspoint/sleep_frame.bin";
214

Callers 1

setupFunction · 0.85

Calls 2

updateMethod · 0.45
isPressedMethod · 0.45

Tested by

no test coverage detected