set LV_ASSERT_HANDLER to something user friendly #14

Closed
opened 2 years ago by x1ddos · 1 comments
x1ddos commented 2 years ago
Owner

the handler is invoked when assertions like LV_ASSERT_MALLOC(p) are triggered.

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.

the handler is invoked when assertions like `LV_ASSERT_MALLOC(p)` are triggered. by default, the handler is set to: ```c #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.
Poster
Owner
moved to https://github.com/nakamochi/ndg/issues/6
x1ddos closed this issue 7 months ago
This repo is archived. You cannot comment on issues.
No Milestone
No project
No Assignees
1 Participants
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: nakamochi/ndg#14
Loading…
There is no content yet.