Refactor packet handling to skip only the RSSI byte for improved reliability

This commit is contained in:
Winston Lowe 2026-02-15 17:04:10 -08:00
parent 1589883c88
commit e6814b4f48

View file

@ -3401,7 +3401,7 @@ class MeshCoreConnector extends ChangeNotifier {
try {
packet.skipBytes(1); // Skip frame type byte
final snr = packet.readInt8() / 4.0;
packet.skipBytes(1); // Skip RSSI and noise bytes, as SNR is more reliable
packet.skipBytes(1); // Skip RSSI byte
//final rssi = packet.readByte();
final header = packet.readByte();
final routeType = header & 0x03;