refactor: remove ping from NearbyScreen, rely on auto-advert for presence

Ping sent empty messages appearing in target's chat history, and RTT
measurement never worked for direct sendMessage() calls. Removed all
ping state machinery and registerExpectedAck(); detail view now shows
node info only (lat/lon/dist/bearing/type).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Jakub
2026-05-14 16:17:52 +02:00
co-authored by Claude Sonnet 4.6
parent 09ac455806
commit 083ddac85c
2 changed files with 5 additions and 64 deletions
-7
View File
@@ -176,13 +176,6 @@ public:
return false;
}
void registerExpectedAck(uint32_t expected_ack) {
if (!expected_ack) return;
expected_ack_table[next_ack_idx].msg_sent = millis();
expected_ack_table[next_ack_idx].ack = expected_ack;
expected_ack_table[next_ack_idx].contact = nullptr;
next_ack_idx = (next_ack_idx + 1) % EXPECTED_ACK_TABLE_SIZE;
}
#if ENV_INCLUDE_GPS == 1
void applyGpsPrefs() {