From 126a8594527084569c6befeffb866768ceed6036 Mon Sep 17 00:00:00 2001 From: Norbert Richter Date: Tue, 1 Mar 2022 10:51:21 +0100 Subject: [PATCH] Use ISO8601 for cell runtime --- tasmota/xsns_83_neopool.ino | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/tasmota/xsns_83_neopool.ino b/tasmota/xsns_83_neopool.ino index b07d7fb90..c12a922f8 100644 --- a/tasmota/xsns_83_neopool.ino +++ b/tasmota/xsns_83_neopool.ino @@ -1673,11 +1673,8 @@ void NeoPoolShow(bool json) #ifndef NEOPOOL_OPTIMIZE_READINGS { // Cell runtime - char dt[16]; - TIME_T tmpTime; - 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); + WSContentSend_PD(HTTP_SNS_NEOPOOL_CELL_RUNTIME, neopool_type, + GetDuration((uint32_t)NeoPoolGetData(MBF_CELL_RUNTIME_LOW) + ((uint32_t)NeoPoolGetData(MBF_CELL_RUNTIME_HIGH) << 16)).c_str()); } #endif // NEOPOOL_OPTIMIZE_READINGS