mirror of
https://github.com/lumapu/ahoy.git
synced 2025-06-14 16:41:38 +02:00
fix compile errors
This commit is contained in:
parent
cc9ba1b808
commit
3a8f37fd8e
4 changed files with 5 additions and 6 deletions
|
@ -781,7 +781,7 @@ class RestApi {
|
|||
obj[F("datapoints")] = HISTORY_DATA_ARR_LENGTH;
|
||||
uint16_t max = 0;
|
||||
for (uint16_t fld = 0; fld < HISTORY_DATA_ARR_LENGTH; fld++) {
|
||||
uint16_t value = mApp->getHistoryValue(HistoryStorageType::POWER, fld);
|
||||
uint16_t value = mApp->getHistoryValue((uint8_t)HistoryStorageType::POWER, fld);
|
||||
obj[F("value")][fld] = value;
|
||||
if (value > max)
|
||||
max = value;
|
||||
|
@ -796,7 +796,7 @@ class RestApi {
|
|||
obj[F("datapoints")] = HISTORY_DATA_ARR_LENGTH;
|
||||
uint16_t max = 0;
|
||||
for (uint16_t fld = 0; fld < HISTORY_DATA_ARR_LENGTH; fld++) {
|
||||
uint16_t value = mApp->getHistoryValue(HistoryStorageType::YIELD, fld);
|
||||
uint16_t value = mApp->getHistoryValue((uint8_t)HistoryStorageType::YIELD, fld);
|
||||
obj[F("value")][fld] = value;
|
||||
if (value > max)
|
||||
max = value;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue