AP_BoardConfig: params always use set method

This commit is contained in:
Iampete1 2022-07-05 04:08:56 +01:00 committed by Peter Hall
parent cacbd2579d
commit 7a5ff6b51f

View File

@ -75,7 +75,7 @@ void AP_BoardConfig::board_setup_drivers(void)
{ {
if (state.board_type == PX4_BOARD_OLDDRIVERS) { if (state.board_type == PX4_BOARD_OLDDRIVERS) {
printf("Old drivers no longer supported\n"); printf("Old drivers no longer supported\n");
state.board_type = PX4_BOARD_AUTO; state.board_type.set(PX4_BOARD_AUTO);
} }
// run board auto-detection // run board auto-detection