Skip to content
Snippets Groups Projects
Commit 0b1ef9ab authored by Gunar Schorcht's avatar Gunar Schorcht
Browse files

cpu/esp: assert removed in esp_now_recv_cb

assert was added intentionally for debugging purposes. For released version it is enough that function returns.
parent 3bb28c98
No related branches found
No related tags found
No related merge requests found
...@@ -213,11 +213,7 @@ static IRAM_ATTR void esp_now_recv_cb(const uint8_t *mac, const uint8_t *data, i ...@@ -213,11 +213,7 @@ static IRAM_ATTR void esp_now_recv_cb(const uint8_t *mac, const uint8_t *data, i
* `esp_now_recv_cb`. To avoid inconsistencies this is checked by an * `esp_now_recv_cb`. To avoid inconsistencies this is checked by an
* additional boolean variable . This can not be realized by a mutex * additional boolean variable . This can not be realized by a mutex
* because `esp_now_recv_cb` would be reentered from same thread context. * because `esp_now_recv_cb` would be reentered from same thread context.
* If the NDEBUG macro is undefined, an assertion is used instead for
* debugging purposes.
*/ */
assert(!_in_recv_cb);
if (_in_recv_cb) { if (_in_recv_cb) {
return; return;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment