mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-29 13:46:37 +00:00
Use ISO8601 for cell runtime
This commit is contained in:
parent
4fd592b21b
commit
126a859452
@ -1673,11 +1673,8 @@ void NeoPoolShow(bool json)
|
|||||||
#ifndef NEOPOOL_OPTIMIZE_READINGS
|
#ifndef NEOPOOL_OPTIMIZE_READINGS
|
||||||
{
|
{
|
||||||
// Cell runtime
|
// Cell runtime
|
||||||
char dt[16];
|
WSContentSend_PD(HTTP_SNS_NEOPOOL_CELL_RUNTIME, neopool_type,
|
||||||
TIME_T tmpTime;
|
GetDuration((uint32_t)NeoPoolGetData(MBF_CELL_RUNTIME_LOW) + ((uint32_t)NeoPoolGetData(MBF_CELL_RUNTIME_HIGH) << 16)).c_str());
|
||||||
BreakTime((uint32_t)NeoPoolGetData(MBF_CELL_RUNTIME_LOW) + ((uint32_t)NeoPoolGetData(MBF_CELL_RUNTIME_HIGH) << 16), tmpTime);
|
|
||||||
snprintf_P(dt, sizeof(dt), PSTR("%dT%02d:%02d"), tmpTime.days, tmpTime.hour, tmpTime.minute);
|
|
||||||
WSContentSend_PD(HTTP_SNS_NEOPOOL_CELL_RUNTIME, neopool_type, dt);
|
|
||||||
}
|
}
|
||||||
#endif // NEOPOOL_OPTIMIZE_READINGS
|
#endif // NEOPOOL_OPTIMIZE_READINGS
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user