AP_Bootloader: fixed rcc reset when no USB

This commit is contained in:
Andrew Tridgell 2018-07-09 09:02:15 +10:00
parent 52a8198311
commit 7316a478b6

View File

@ -224,8 +224,10 @@ jump_to_app()
// resetting the clocks is needed for loading NuttX
rccDisableAPB1(~0, 0);
rccDisableAPB2(~0, 0);
#if HAL_USE_SERIAL_USB == TRUE
rccResetOTG_FS();
rccResetOTG_HS();
#endif
// disable all interrupt sources
port_disable();