From 3192ae716ecbb8ec4838385a3ad5e1844b3f566d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89milie=20Feral?= Date: Mon, 5 Aug 2019 11:07:50 +0200 Subject: [PATCH] [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 --- quiz/src/assertions.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/quiz/src/assertions.cpp b/quiz/src/assertions.cpp index 5e9b19b29..b439a3146 100644 --- a/quiz/src/assertions.cpp +++ b/quiz/src/assertions.cpp @@ -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) { + } } }