aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/include/can.h
diff options
context:
space:
mode:
Diffstat (limited to 'os/hal/include/can.h')
-rw-r--r--os/hal/include/can.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/os/hal/include/can.h b/os/hal/include/can.h
index 2a0d1e4df..d49f5ee18 100644
--- a/os/hal/include/can.h
+++ b/os/hal/include/can.h
@@ -62,8 +62,8 @@
/* Derived constants and error checks. */
/*===========================================================================*/
-#if !CH_USE_SEMAPHORES
-#error "CAN driver requires CH_USE_SEMAPHORES"
+#if !CH_USE_SEMAPHORES || !CH_USE_EVENTS
+#error "the ADC driver requires CH_USE_SEMAPHORES and CH_USE_EVENTS"
#endif
/*===========================================================================*/