temp sync broken
This commit is contained in:
@@ -21,12 +21,12 @@
|
||||
// requires at least a 256 byte data
|
||||
|
||||
|
||||
void processFrame (const FrameStruct *frame) {
|
||||
void processFrame (FrameStruct *frame) {
|
||||
printFrameHeader (frame);
|
||||
if (frame->header & PAYLOAD_VERSION_3) { // more than the version 0
|
||||
MESH_LOGW (TAG, "Frame too new, got version %d instead of 0", (frame->header & PAYLOAD_VERSION_3) >> 6);
|
||||
}
|
||||
|
||||
|
||||
unsigned char frameType = frame->header & PAYLOAD_TYPE_MASK;
|
||||
|
||||
unsigned char index = 0;
|
||||
@@ -67,12 +67,15 @@ void processFrame (const FrameStruct *frame) {
|
||||
} else if (frameType == PAYLOAD_TYPE_MULTIPART) {
|
||||
|
||||
} else if (frameType == PAYLOAD_TYPE_CONTROL) {
|
||||
decodeControlFrame (frame);
|
||||
if (frame->path.pathLen == 0) {
|
||||
decodeControlFrame (frame);
|
||||
}
|
||||
frame->header = 0xFF;
|
||||
|
||||
} else if (frameType == PAYLOAD_TYPE_RAW_CUSTOM) {
|
||||
// not implemented
|
||||
} else {
|
||||
stats.packetsReceivedCount--;
|
||||
}
|
||||
MESH_LOGD(TAG, "Processed frame");
|
||||
MESH_LOGD (TAG, "Processed frame");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user