From cf39911740f8f1bc29167c40959f41b73180d32b Mon Sep 17 00:00:00 2001 From: Frederic Pillon Date: Mon, 7 Apr 2025 11:23:19 +0200 Subject: [PATCH] chore(wb): warn user about untested board Fixes #75 Signed-off-by: Frederic Pillon --- src/utility/HCISharedMemTransport.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/utility/HCISharedMemTransport.cpp b/src/utility/HCISharedMemTransport.cpp index f4ce1d0b..1544871a 100644 --- a/src/utility/HCISharedMemTransport.cpp +++ b/src/utility/HCISharedMemTransport.cpp @@ -22,11 +22,10 @@ #include "STM32_WPAN/hw.h" #include "otp.h" -#if defined(ARDUINO_NUCLEO_WB15CC) || defined(ARDUINO_P_NUCLEO_WB55RG) ||\ - defined(ARDUINO_STM32WB5MM_DK) || defined(ARDUINO_P_NUCLEO_WB55_USB_DONGLE) HCISharedMemTransportClass HCISharedMemTransport; -#else -#error "Unsupported board or shield selected!" +#if !defined(ARDUINO_NUCLEO_WB15CC) && !defined(ARDUINO_P_NUCLEO_WB55RG) &&\ + !defined(ARDUINO_STM32WB5MM_DK) && !defined(ARDUINO_P_NUCLEO_WB55_USB_DONGLE) +#warning "Selected board has never been tested with this library, ensure to have a correct configuration!" #endif /* Private variables ---------------------------------------------------------*/