From 36f1597bd2d67b46d10a57098667c68fd17aca7e Mon Sep 17 00:00:00 2001 From: Nenad Vojnovic Date: Wed, 11 Sep 2024 12:15:13 +0200 Subject: [PATCH] Fix: Ensure correct target board is loaded when using Custom Board When selecting "Custom Board" in the project wizard with the target device EFR32ZG23B020F512IM48, the template defines RADIO_BOARD_EFR32ZG23, which causes radio_board_efr32zg23 to be loaded in target_boards. This fix ensures that when a project is started with "Custom Board," the radio_no_board configuration is correctly loaded instead. --- .../platform/SiliconLabs/AppsHw/inc/target_boards.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/protocol/z-wave/platform/SiliconLabs/AppsHw/inc/target_boards.h b/protocol/z-wave/platform/SiliconLabs/AppsHw/inc/target_boards.h index 2e837b9d1e0..be8fa3e7c8b 100644 --- a/protocol/z-wave/platform/SiliconLabs/AppsHw/inc/target_boards.h +++ b/protocol/z-wave/platform/SiliconLabs/AppsHw/inc/target_boards.h @@ -19,7 +19,10 @@ /* Radio Board Definitions */ /*************************************************************************/ -#if defined(RADIO_BOARD_EFR32ZG13L) +#if defined(RADIO_NO_BOARD) +#include "radio_no_board.h" + +#elif defined(RADIO_BOARD_EFR32ZG13L) #include "radio_board_efr32zg13l.h" #elif defined(RADIO_BOARD_EFR32ZG13P32) @@ -43,9 +46,6 @@ #elif defined(RADIO_BOARD_BRD2705A) #include "radio_board_brd2705a.h" -#elif defined(RADIO_NO_BOARD) -#include "radio_no_board.h" - #endif #if defined(RADIO_BOARD_BRD2603A) || defined(RADIO_BOARD_BRD2705A)