refactor(doorbell-touch): add build harness with monitor agent and board-specific setup
This commit is contained in:
@@ -231,11 +231,13 @@ void DoorbellLogic::onAdmin(const String& cmd) {
|
||||
ESP.restart();
|
||||
} else if(cmd == "dashboard") {
|
||||
Serial.printf("[%lu] [ADMIN] dashboard\n", millis());
|
||||
_lastActivityMs = millis(); // Reset inactivity timer
|
||||
_state.screen = ScreenID::DASHBOARD;
|
||||
_display->setBacklight(true);
|
||||
_state.backlightOn = true;
|
||||
} else if(cmd == "off") {
|
||||
Serial.printf("[%lu] [ADMIN] off\n", millis());
|
||||
_lastActivityMs = millis(); // Reset inactivity timer
|
||||
_state.screen = ScreenID::OFF;
|
||||
_display->setBacklight(false);
|
||||
_state.backlightOn = false;
|
||||
|
||||
Reference in New Issue
Block a user