[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:
Émilie Feral
2019-08-05 11:07:50 +02:00
parent 4a26900a0f
commit 3192ae716e

View File

@@ -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) {
}
}
}