forked from btclock/btclock_v3
Switch own data source domain, fix small block notification bug
This commit is contained in:
parent
9cdbcc6046
commit
ef7d629e8c
2 changed files with 5 additions and 1 deletions
|
@ -160,6 +160,10 @@ void onWebsocketBlockMessage(esp_websocket_event_data_t *event_data)
|
|||
{
|
||||
JsonObject block = doc["block"];
|
||||
|
||||
if (block["height"].as<uint>() == currentBlockHeight) {
|
||||
return;
|
||||
}
|
||||
|
||||
currentBlockHeight = block["height"].as<uint>();
|
||||
|
||||
// Serial.printf("New block found: %d\r\n", block["height"].as<uint>());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue