Update byte skipping logic and improve clarity in MeshCoreConnector and ChannelMessage

This commit is contained in:
Winston Lowe committed 2026-03-23 08:14:46 -07:00
1 parent 767dc1164e
commit 630606acdc
3 files changed
+4 -3

No files matched your search

+2 -1
View File
@@ -4323,7 +4323,8 @@ class MeshCoreConnector extends ChangeNotifier {
routeType == _routeTransportFlood ||
routeType == _routeTransportDirect;
if (hasTransport) {
reader.skipBytes(2); // Skip reserved bytes in transport header
// Skip reserved bytes in transport header made up of two u16 fields
reader.skipBytes(4);
}
final pathLenRaw = reader.readByte();
final pathByteLen = _decodePathByteLen(pathLenRaw);