mirror of
https://github.com/UtilitechAS/amsreader-firmware.git
synced 2026-03-01 17:47:56 +00:00
Some changes after testing
This commit is contained in:
@@ -373,7 +373,7 @@ bool HomeAssistantMqttHandler::publishPrices(PriceService* ps) {
|
||||
float values[38];
|
||||
for(int i = 0;i < 38; i++) values[i] = PRICE_NO_VALUE;
|
||||
for(uint8_t i = 0; i < 38; i++) {
|
||||
float val = ps->getPriceForHour(PRICE_DIRECTION_IMPORT, i);
|
||||
float val = ps->getPriceForRelativeHour(PRICE_DIRECTION_IMPORT, i);
|
||||
values[i] = val;
|
||||
|
||||
if(val == PRICE_NO_VALUE) break;
|
||||
|
||||
Reference in New Issue
Block a user