MCPcopy Create free account
hub / github.com/BruceDevices/firmware / loop

Function loop

src/main.cpp:517–537  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

515 **********************************************************************/
516#if defined(HAS_SCREEN)
517void loop() {
518#if !defined(LITE_VERSION) && !defined(DISABLE_INTERPRETER)
519 if (interpreter_state > 0) {
520 vTaskDelay(pdMS_TO_TICKS(10));
521 interpreter_state = 2;
522 Serial.println("Entering interpreter...");
523 while (interpreter_state > 0) { vTaskDelay(pdMS_TO_TICKS(500)); }
524 if (interpreter_state == 0) {
525 Serial.println("Interpreter put to background.");
526 } else {
527 Serial.println("Exiting interpreter...");
528 }
529 if (interpreter_state == -1) { interpreterTaskHandler = NULL; }
530 previousMillis = millis(); // ensure that will not dim screen when get back to menu
531 }
532#endif
533 tft.fillScreen(bruceConfig.bgColor);
534
535 mainMenu.begin();
536 delay(1);
537}
538#else
539
540void loop() {

Callers 15

setupMethod · 0.85
setupMethod · 0.85
setupMethod · 0.85
setupMethod · 0.85
setupMethod · 0.85
EvilPortalMethod · 0.85
setupMethod · 0.85
setupMethod · 0.85
DHCPStarvationMethod · 0.85
setupMethod · 0.85
MACFloodingMethod · 0.85
setupMethod · 0.85

Calls 5

millisFunction · 0.85
setLoggingMethod · 0.80
printlnMethod · 0.45
fillScreenMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected