mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-18 16:27:34 +01:00
[quiz] quiz_assert does not abort anymore but enters an infinite loop to
avoid reseting the device and losing all the information displayed on screen
This commit is contained in:
@@ -4,6 +4,8 @@
|
||||
|
||||
void quiz_assert(bool condition) {
|
||||
if (!condition) {
|
||||
abort();
|
||||
// We want to keep what the screen is displaying so we cannot abort
|
||||
while (1) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user