shutdown timer improved

This commit is contained in:
Michal Moravcik
2020-12-09 12:01:17 +01:00
parent 8b634aafaf
commit 4170defbda
2 changed files with 7 additions and 3 deletions

View File

@@ -33,8 +33,12 @@ void BoardInterface::shutdownDevice() {
Serial.println("Shutdown.");
displayMessage("Shutdown in 3 sec.", "");
delay(3000);
char msg[20];
for (int i = 3; i >= 1; i--) {
sprintf(msg, "Shutdown in %d sec.", i);
displayMessage(msg, "");
delay(1000);
}
#ifdef SIM800L_ENABLED
if(sim800l->isConnectedGPRS()) {