Add uptime to boot message

Signed-off-by: Thomas Osterried <dl9sau@darc.de>
pull/7/head
Thomas Osterried 2022-09-30 14:26:40 +02:00
rodzic ad44070476
commit beb633e158
1 zmienionych plików z 5 dodań i 1 usunięć

Wyświetl plik

@ -1190,8 +1190,12 @@ void do_send_status_message_about_connect_to_aprsis(void) {
outString = outString + String(buf);
if (aprsis_time_last_successful_connect.length())
outString = outString + ", last " + aprsis_time_last_successful_connect;
else
else {
outString = outString + ", Booted[B" + buildnr + "]";
if (millis() > 60*1000)
outString = outString + ",up:" + int(millis()/1000/60);
outString = outString + "]";
}
// remember this time as last connect time, for being able to reference it next time
aprsis_time_last_successful_connect = String(buf);