feat(repeater): report the TX-failure counters in the RF status reply

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
tthandClaude Opus 5 committed 2026-08-19 19:42:20 +02:00
1 parent e06d95ed22
commit 0d8ca69d69
2 files changed
+22

No files matched your search

+2
View File
@@ -497,6 +497,8 @@ int MyMesh::handleRequest(ClientInfo *sender, uint32_t sender_timestamp, uint8_t
stats.n_flood_dups = ((SimpleMeshTables *)getTables())->getNumFloodDups();
stats.total_rx_air_time_secs = getReceiveAirTime() / 1000;
stats.n_recv_errors = radio_driver.getPacketsRecvErrors();
stats.n_tx_start_fail = getNumTxStartFail(); // CUSTOM (TeTeHacko)
stats.n_tx_timeout = getNumTxTimeout(); // CUSTOM (TeTeHacko)
memcpy(&reply_data[4], &stats, sizeof(stats));
return 4 + sizeof(stats); // reply_len