mirror of
https://github.com/zjs81/meshcore-open.git
synced 2026-07-09 10:13:26 +10:00
Refactor packet handling to skip only the RSSI byte for improved reliability
This commit is contained in:
@@ -3401,7 +3401,7 @@ class MeshCoreConnector extends ChangeNotifier {
|
|||||||
try {
|
try {
|
||||||
packet.skipBytes(1); // Skip frame type byte
|
packet.skipBytes(1); // Skip frame type byte
|
||||||
final snr = packet.readInt8() / 4.0;
|
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 rssi = packet.readByte();
|
||||||
final header = packet.readByte();
|
final header = packet.readByte();
|
||||||
final routeType = header & 0x03;
|
final routeType = header & 0x03;
|
||||||
|
|||||||
Reference in New Issue
Block a user