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()) {

View File

@@ -4,7 +4,7 @@
- tech refactoring: `hexToDecFromResponse`, `decFromResponse`
- added support for GPS module on HW UART (user HWUART=2 for m5stack NEO-M8N)
- sd card logging - added gps sat/lat/lot/alt + SD filename + time is synchronized from GPS
- menu cycling
- small improvements: menu cycling, shutdown timer
### v2.1.0 2020-12-06
- m5stack mute speaker