Remove sending network ping to displayed node on interval

This commit is contained in:
GUVWAF
2023-03-26 13:48:14 +02:00
committed by Thomas Göttgens
parent 8a81f190b8
commit 8f736c8ecc
6 changed files with 0 additions and 38 deletions

View File

@@ -194,17 +194,6 @@ static void onEnter()
LOG_INFO("Enter state: ON\n");
screen->setOn(true);
setBluetoothEnable(true);
static uint32_t lastPingMs;
uint32_t now = millis();
if ((now - lastPingMs) >
30 * 1000) { // if more than a minute since our last press, ask node we are looking at to update their state
if (displayedNodeNum)
service.sendNetworkPing(displayedNodeNum, true); // Refresh the currently displayed node
lastPingMs = now;
}
}
static void onIdle()