aboutsummaryrefslogtreecommitdiffstats
path: root/include/gos/chibios.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/gos/chibios.h')
-rw-r--r--include/gos/chibios.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/gos/chibios.h b/include/gos/chibios.h
index aa98c645..5193587a 100644
--- a/include/gos/chibios.h
+++ b/include/gos/chibios.h
@@ -63,7 +63,7 @@ typedef Thread * gfxThreadHandle;
extern "C" {
#endif
-#define gfxHalt(msg) chDbgPanic(msg)
+#define gfxHalt(msg) { chDbgPanic(msg); chSysHalt(); }
#define gfxExit() chSysHalt()
#define gfxAlloc(sz) chHeapAlloc(NULL, sz)
#define gfxFree(ptr) chHeapFree(ptr)