File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -248,7 +248,7 @@ bool CMux::on_header(CMuxFrame &frame)
248
248
// Sanity check for expected values of DLCI and type,
249
249
// since CRC could be evaluated after the frame payload gets received
250
250
if (dlci > MAX_TERMINALS_NUM || (frame_header[1 ] & 0x01 ) == 0 ||
251
- (((type & FT_UIH) != FT_UIH) && type != (FT_UA | PF) ) ) {
251
+ (((type & FT_UIH) != FT_UIH) && type != (FT_UA | PF)) ) {
252
252
recover_protocol (protocol_mismatch_reason::UNEXPECTED_HEADER);
253
253
return true ;
254
254
}
@@ -327,7 +327,7 @@ bool CMux::on_cmux_data(uint8_t *data, size_t actual_len)
327
327
auto data_end = buffer.get () + buffer.size ;
328
328
data_to_read = payload_len + 2 ; // 2 -- CMUX protocol footer
329
329
if (data + data_to_read >= data_end) {
330
- ESP_LOGW (" CUMX " , " Failed to defragment longer payload (payload=%" PRIsize_t " )" , payload_len);
330
+ ESP_LOGW (" CMUX " , " Failed to defragment longer payload (payload=%" PRIsize_t " )" , payload_len);
331
331
// If you experience this error, your device uses longer payloads while
332
332
// the configured buffer is too small to defragment the payload properly.
333
333
// To resolve this issue you can:
You can’t perform that action at this time.
0 commit comments