Skip to content

Commit fb3da3b

Browse files
committed
chore(wb): warn user about untested board
Fixes #75 Signed-off-by: Frederic Pillon <[email protected]>
1 parent 8fdf958 commit fb3da3b

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Diff for: src/utility/HCISharedMemTransport.cpp

+3-4
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,10 @@
2222
#include "STM32_WPAN/hw.h"
2323
#include "otp.h"
2424

25-
#if defined(ARDUINO_NUCLEO_WB15CC) || defined(ARDUINO_P_NUCLEO_WB55RG) ||\
26-
defined(ARDUINO_STM32WB5MM_DK) || defined(ARDUINO_P_NUCLEO_WB55_USB_DONGLE)
2725
HCISharedMemTransportClass HCISharedMemTransport;
28-
#else
29-
#error "Unsupported board or shield selected!"
26+
#if !defined(ARDUINO_NUCLEO_WB15CC) && !defined(ARDUINO_P_NUCLEO_WB55RG) &&\
27+
!defined(ARDUINO_STM32WB5MM_DK) && !defined(ARDUINO_P_NUCLEO_WB55_USB_DONGLE)
28+
#warning "Selected board has never been tested with this library, ensure to have a correct configuration!"
3029
#endif
3130

3231
/* Private variables ---------------------------------------------------------*/

0 commit comments

Comments
 (0)