aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorinmarket <andrewh@inmarket.com.au>2013-11-16 22:49:36 +1000
committerinmarket <andrewh@inmarket.com.au>2013-11-16 22:49:36 +1000
commit915c368505c460640e0ff7622b9ec47ecc2fe3d9 (patch)
tree97f810c768e98d99d21ef7096ace81979f5b7375
parent1ae42d93c1af6e2f26c4efc0e4b72e98a1eb6d21 (diff)
downloaduGFX-915c368505c460640e0ff7622b9ec47ecc2fe3d9.tar.gz
uGFX-915c368505c460640e0ff7622b9ec47ecc2fe3d9.tar.bz2
uGFX-915c368505c460640e0ff7622b9ec47ecc2fe3d9.zip
gfxHalt doesn't always work under ChibiOS. This has now been fixed.
-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)