Merge pull request #1477 from Cisien/dev

Expose a counter to track RadioLib receive errors
This commit is contained in:
ripplebiz
2026-01-26 19:04:48 +11:00
committed by GitHub
5 changed files with 9 additions and 5 deletions
+1 -1
View File
@@ -226,7 +226,7 @@ int MyMesh::handleRequest(ClientInfo *sender, uint32_t sender_timestamp, uint8_t
stats.n_direct_dups = ((SimpleMeshTables *)getTables())->getNumDirectDups();
stats.n_flood_dups = ((SimpleMeshTables *)getTables())->getNumFloodDups();
stats.total_rx_air_time_secs = getReceiveAirTime() / 1000;
stats.n_recv_errors = radio_driver.getPacketsRecvErrors();
memcpy(&reply_data[4], &stats, sizeof(stats));
return 4 + sizeof(stats); // reply_len