Skip to content

Commit 58af974

Browse files
committed
Check board info version at startup.
1 parent 3f7b457 commit 58af974

File tree

1 file changed

+3
-0
lines changed
  • source/daplink/interface

1 file changed

+3
-0
lines changed

source/daplink/interface/main.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,9 @@ void main_task(void * arg)
213213
// Initialize the DAP
214214
DAP_Setup();
215215

216+
// make sure we have a valid board info structure.
217+
util_assert(g_board_info.info_version == kBoardInfoVersion);
218+
216219
// do some init with the target before USB and files are configured
217220
if (g_board_info.prerun_board_config) {
218221
g_board_info.prerun_board_config();

0 commit comments

Comments
 (0)