AP_Periph: compile-error fix for for hwdef with HAL_NO_ROMFS_SUPPORT

This commit is contained in:
Tom Pittenger 2020-12-22 15:44:48 -08:00 committed by Tom Pittenger
parent b02f0ee51f
commit 4c484c8577
1 changed files with 2 additions and 0 deletions

View File

@ -1175,7 +1175,9 @@ void AP_Periph_FW::can_start()
PreferredNodeID = g.can_node;
}
#if !defined(HAL_NO_FLASH_SUPPORT) && !defined(HAL_NO_ROMFS_SUPPORT)
periph.g.flash_bootloader.set_and_save_ifchanged(0);
#endif
can_iface.init(1000000, AP_HAL::CANIface::NormalMode);