From 7a5ff6b51fb7c4374300062ac28935439443a1be Mon Sep 17 00:00:00 2001 From: Iampete1 Date: Tue, 5 Jul 2022 04:08:56 +0100 Subject: [PATCH] AP_BoardConfig: params always use set method --- libraries/AP_BoardConfig/board_drivers.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_BoardConfig/board_drivers.cpp b/libraries/AP_BoardConfig/board_drivers.cpp index bb082a8531..e46726fafa 100644 --- a/libraries/AP_BoardConfig/board_drivers.cpp +++ b/libraries/AP_BoardConfig/board_drivers.cpp @@ -75,7 +75,7 @@ void AP_BoardConfig::board_setup_drivers(void) { if (state.board_type == PX4_BOARD_OLDDRIVERS) { printf("Old drivers no longer supported\n"); - state.board_type = PX4_BOARD_AUTO; + state.board_type.set(PX4_BOARD_AUTO); } // run board auto-detection