Page 1 of 1

where to get assert function example for ESP32?

Posted: Fri May 05, 2017 3:10 am
by wziy520
there are assert define in idf code, but not use,
Does ESP32 have the workable assert code , or other method check the same as assert

Re: where to get assert function example for ESP32?

Posted: Fri May 05, 2017 4:09 am
by ESP_Angus
esp-idf will compile with asserts enabled unless you set the "Optimization Level" in menuconfig to "Release" instead of "Debug". "Debug" is the default.

If you have optimization level set to Debug and asserts are not working, please let us know.