Improve keepalive

This commit is contained in:
Armel FAUVEAU committed 2025-07-27 05:07:31 +02:00
1 parent 7844a79be9
commit 5eca7b0307
1 file changed
+7 -1
+7 -1
View File
@@ -40,9 +40,15 @@ void getScreenShot(bool force)
if (UART_IsCableConnected()) {
keepAlive = 10;
} else if (keepAlive > 0) {
}
if (keepAlive > 0) {
if (--keepAlive == 0) return;
}
else
{
return;
}
// Build current frame from status line (first 8 lines)
for (uint8_t b = 0; b < 8; b++) {