mirror of
https://github.com/UtilitechAS/amsreader-firmware.git
synced 2026-03-24 17:56:03 +00:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fdfa6c1b52 |
@@ -431,7 +431,7 @@ bool JsonMqttHandler::publishPrices(PriceService* ps) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pos--;
|
pos--;
|
||||||
pos += snprintf_P(json+pos, BufferSize-pos, PSTR("],\"min\":%.4f,\"max\":%.4f,\"cheapest1hr\":\"%s\",\"cheapest3hr\":\"%s\",\"cheapest6hr\":\"%s\"}}"),
|
pos += snprintf_P(json+pos, BufferSize-pos, PSTR("],\"min\":%.4f,\"max\":%.4f,\"cheapest1hr\":%s,\"cheapest3hr\":%s,\"cheapest6hr\":%s}}"),
|
||||||
min == INT16_MAX ? 0.0 : min,
|
min == INT16_MAX ? 0.0 : min,
|
||||||
max == INT16_MIN ? 0.0 : max,
|
max == INT16_MIN ? 0.0 : max,
|
||||||
ts1hr,
|
ts1hr,
|
||||||
|
|||||||
Reference in New Issue
Block a user