mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-02 12:14:32 +02:00
Merge branch 'bugfix/freemodbus_fix_event_processing_after_destroy_backport40' into 'release/v4.0'
freemodbus: fix event processing failure after destroy (backport v4.0) See merge request espressif/esp-idf!9323
This commit is contained in:
@@ -274,7 +274,12 @@ eMBMasterReqErrCode eMBMasterWaitRequestFinish( void ) {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
ESP_LOGE(MB_PORT_TAG,"%s: Incorrect event or timeout xRecvedEvent = 0x%x", __func__, uxBits);
|
ESP_LOGE(MB_PORT_TAG,"%s: Incorrect event or timeout xRecvedEvent = 0x%x", __func__, uxBits);
|
||||||
assert(0);
|
// https://github.com/espressif/esp-idf/issues/5275
|
||||||
|
// if a no event is received, that means vMBMasterPortEventClose()
|
||||||
|
// has been closed, so event group has been deleted by FreeRTOS, which
|
||||||
|
// triggers the send of 0 value to the event group to unlock this task
|
||||||
|
// waiting on it. For this patch, handles it as a time out without assert.
|
||||||
|
eErrStatus = MB_MRE_TIMEDOUT;
|
||||||
}
|
}
|
||||||
return eErrStatus;
|
return eErrStatus;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user