mirror of
https://github.com/zjs81/meshcore-open.git
synced 2026-04-20 22:13:48 +00:00
Refactor packet handling to skip only the RSSI byte for improved reliability
This commit is contained in:
parent
1589883c88
commit
e6814b4f48
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue