Open x1ddos opened 1 month ago
the handler is invoked when assertions like LV_ASSERT_MALLOC(p) are triggered.
LV_ASSERT_MALLOC(p)
by default, the handler is set to:
#define LV_ASSERT_HANDLER_INCLUDE <stdint.h> #define LV_ASSERT_HANDLER while(1)
which would freeze the ui and is not ideal. maybe set it to display an emergency screen with a shutdown button or something else.
note: if malloc assertion is triggered, it could be impossible to construct a new ui screen.
How to add inside the definition that my function is called. #define LV_ASSERT_HANDLER vMyAssert();
the handler is invoked when assertions like
LV_ASSERT_MALLOC(p)
are triggered.by default, the handler is set to:
which would freeze the ui and is not ideal. maybe set it to display an emergency screen with a shutdown button or something else.
note: if malloc assertion is triggered, it could be impossible to construct a new ui screen.