Add extra check for missing price updates

This commit is contained in:
Djuri 2024-03-17 23:16:15 +01:00
parent 3e00f1b4a6
commit 37c57b7d97
3 changed files with 18 additions and 3 deletions

View file

@ -105,6 +105,10 @@ void onWebsocketPriceMessage(esp_websocket_event_data_t *event_data) {
}
}
uint getLastPriceUpdate() {
return lastPriceUpdate;
}
uint getPrice() { return currentPrice; }
void setPrice(uint newPrice) { currentPrice = newPrice; }

View file

@ -19,4 +19,5 @@ void setPrice(uint newPrice);
bool isPriceNotifyConnected();
void stopPriceNotify();
bool getPriceNotifyInit();
bool getPriceNotifyInit();
uint getLastPriceUpdate();