mirror of
https://github.com/armel/uv-k1-k5v3-firmware-custom.git
synced 2026-10-02 03:15:37 +00:00
Improve keepalive
This commit is contained in:
1 parent
7844a79be9
commit
5eca7b0307
1 file changed
+7
-1
+7
-1
@@ -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++) {
|
||||
|
||||
Reference in new issue
Block a user