mirror of
https://github.com/lumapu/ahoy.git
synced 2025-05-19 20:06:11 +02:00
* web-serial: added internal buffer which is transmitted every second if its fill state is different from 0
* added uptime to serial console * time will be instantiated in ESP (was in in JS) * fixed SerialDebug inside hmRadio.h (thx to klahus1)
This commit is contained in:
parent
b1fa6e0702
commit
0759bff4cd
6 changed files with 79 additions and 24 deletions
|
@ -94,6 +94,15 @@ class app {
|
|||
return String(str);
|
||||
}
|
||||
|
||||
String getTimeStr(void) {
|
||||
char str[20];
|
||||
if(0 == mTimestamp)
|
||||
sprintf(str, "n/a");
|
||||
else
|
||||
sprintf(str, "%02d:%02d:%02d ", hour(mTimestamp), minute(mTimestamp), second(mTimestamp));
|
||||
return String(str);
|
||||
}
|
||||
|
||||
inline uint32_t getUptime(void) {
|
||||
return mUptimeSecs;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue