Allow waitForEvent on main thread; fixes #60
also use target_panic() instead of assert
This commit is contained in:
@ -180,7 +180,7 @@ void init() {
|
||||
mappedFrameBuffer = (uint8_t *)mmap(NULL, FB_SIZE, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0);
|
||||
DMESG("map %p", mappedFrameBuffer);
|
||||
if (mappedFrameBuffer == MAP_FAILED) {
|
||||
target_panic(111);
|
||||
target_panic(903);
|
||||
}
|
||||
clear();
|
||||
|
||||
|
Reference in New Issue
Block a user