Make UsbCommand_JumpToModuleBootloader() more robust by not making it dependent on the state of the module driver.

This commit is contained in:
László Monda
2017-12-13 01:27:04 +01:00
parent a52df9da7e
commit 6a54944cb1
4 changed files with 10 additions and 17 deletions

View File

@@ -13,5 +13,5 @@ void UsbCommand_JumpToModuleBootloader(void)
}
uint8_t uhkModuleDriverId = SLOT_ID_TO_UHK_MODULE_DRIVER_ID(slotId);
UhkModuleStates[uhkModuleDriverId].jumpToBootloader = true;
UhkModuleStates[uhkModuleDriverId].phase = UhkModulePhase_JumpToBootloader;
}