aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/include/hal_onewire.h
diff options
context:
space:
mode:
Diffstat (limited to 'os/hal/include/hal_onewire.h')
-rw-r--r--os/hal/include/hal_onewire.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/os/hal/include/hal_onewire.h b/os/hal/include/hal_onewire.h
index 12e7b75..bbaf77b 100644
--- a/os/hal/include/hal_onewire.h
+++ b/os/hal/include/hal_onewire.h
@@ -59,11 +59,13 @@
/*===========================================================================*/
/* Driver pre-compile time settings. */
/*===========================================================================*/
+#if ONEWIRE_SYNTH_SEARCH_TEST && !ONEWIRE_USE_SEARCH_ROM
+#error "Synthetic search rom test needs ONEWIRE_USE_SEARCH_ROM"
+#endif
/*===========================================================================*/
/* Derived constants and error checks. */
/*===========================================================================*/
-
#if !HAL_USE_PWM
#error "1-wire Driver requires HAL_USE_PWM"
#endif