where to get assert function example for ESP32?

wziy520
Posts: 42
Joined: Thu Nov 10, 2016 7:58 am

where to get assert function example for ESP32?

Postby wziy520 » Fri May 05, 2017 3:10 am

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

ESP_Angus
Posts: 2344
Joined: Sun May 08, 2016 4:11 am

Re: where to get assert function example for ESP32?

Postby ESP_Angus » Fri May 05, 2017 4:09 am

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.

Who is online

Users browsing this forum: No registered users and 189 guests