Add extra check for missing price updates
This commit is contained in:
parent
3e00f1b4a6
commit
37c57b7d97
3 changed files with 18 additions and 3 deletions
|
@ -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; }
|
||||
|
|
|
@ -19,4 +19,5 @@ void setPrice(uint newPrice);
|
|||
|
||||
bool isPriceNotifyConnected();
|
||||
void stopPriceNotify();
|
||||
bool getPriceNotifyInit();
|
||||
bool getPriceNotifyInit();
|
||||
uint getLastPriceUpdate();
|
Loading…
Add table
Add a link
Reference in a new issue