MCPcopy Create free account
hub / github.com/OpenEPaperLink/OpenEPaperLink / checkWaitPowerCycle

Function checkWaitPowerCycle

ESP32_AP-Flasher/src/serialap.cpp:792–805  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

790#endif
791}
792void checkWaitPowerCycle() {
793 // check if we should wait for a power cycle. If we do, try to inform the user the best we can, and hang.
794#ifdef POWER_NO_SOFT_POWER
795 setAPstate(false, AP_STATE_REQUIRED_POWER_CYCLE);
796 // If we have no soft power control, we'll now wait until the device is power-cycled
797 Serial.printf("Please power-cycle your AP/device\r\n");
798#ifdef HAS_RGB_LED
799 showColorPattern(CRGB::Aqua, CRGB::Aqua, CRGB::Red);
800#endif
801 while (1) {
802 vTaskDelay(3000 / portTICK_PERIOD_MS);
803 }
804#endif
805}
806void segmentedShowIp() {
807 IPAddress IP = wm.localIP();
808 char temp[12];

Callers 1

APTaskFunction · 0.85

Calls 3

setAPstateFunction · 0.85
printfMethod · 0.80
showColorPatternFunction · 0.70

Tested by

no test coverage detected