aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--os/kernel/include/ch.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/os/kernel/include/ch.h b/os/kernel/include/ch.h
index 0512fd3e5..eac0b6500 100644
--- a/os/kernel/include/ch.h
+++ b/os/kernel/include/ch.h
@@ -76,7 +76,7 @@
* @brief Generic 'true' boolean constant.
*/
#if !defined(TRUE) || defined(__DOXYGEN__)
-#define TRUE !0
+#define TRUE (!FALSE)
#endif
/**
@@ -86,7 +86,7 @@
* returning a @p bool_t as a status indicator.
*/
#if !defined(CH_SUCCESS) || defined(__DOXYGEN__)
-#define CH_SUCCESS FALSE
+#define CH_SUCCESS FALSE
#endif
/**
@@ -96,7 +96,7 @@
* returning a @p bool_t as a status indicator.
*/
#if !defined(CH_FAILED) || defined(__DOXYGEN__)
-#define CH_FAILED TRUE
+#define CH_FAILED TRUE
#endif
/** @} */