mirror of
https://github.com/MarekZegare4/MeshCore-Solo.git
synced 2026-07-27 15:28:11 +00:00
fix: reset _ping_ack_seen on detail view enter and exit
Stale _ping_ack_seen=true from a previous ping attempt could cause an immediate PING_OK (with wrong RTT) on the next ping if the new ACK entry hadn't appeared in the table yet. Reset the flag everywhere _ping_state is set to PING_IDLE. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -284,8 +284,9 @@ public:
|
||||
// ── detail view input ────────────────────────────────────────────────────
|
||||
if (_detail) {
|
||||
if (c == KEY_CANCEL || c == KEY_CONTEXT_MENU) {
|
||||
_detail = false;
|
||||
_ping_state = PING_IDLE;
|
||||
_detail = false;
|
||||
_ping_state = PING_IDLE;
|
||||
_ping_ack_seen = false;
|
||||
return true;
|
||||
}
|
||||
if (c == KEY_ENTER && _ping_state == PING_IDLE) {
|
||||
@@ -337,8 +338,9 @@ public:
|
||||
return true;
|
||||
}
|
||||
if (c == KEY_ENTER && _count > 0) {
|
||||
_detail = true;
|
||||
_ping_state = PING_IDLE;
|
||||
_detail = true;
|
||||
_ping_state = PING_IDLE;
|
||||
_ping_ack_seen = false;
|
||||
return true;
|
||||
}
|
||||
if (c == KEY_LEFT) {
|
||||
|
||||
Reference in New Issue
Block a user