mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-19 06:15:16 +03:00
Fixed FLASH boot loader option.
This commit is contained in:
parent
db2e69047e
commit
0e35163ed2
6 changed files with 13 additions and 13 deletions
|
@ -44,7 +44,7 @@ void systemResetToBootloader(bootloaderRequestType_e requestType)
|
|||
switch (requestType) {
|
||||
case BOOTLOADER_REQUEST_ROM:
|
||||
default:
|
||||
persistentObjectWrite(PERSISTENT_OBJECT_RESET_REASON, RESET_BOOTLOADER_REQUEST);
|
||||
persistentObjectWrite(PERSISTENT_OBJECT_RESET_REASON, RESET_BOOTLOADER_REQUEST_ROM);
|
||||
|
||||
break;
|
||||
}
|
||||
|
@ -65,7 +65,7 @@ void checkForBootLoaderRequest(void)
|
|||
{
|
||||
uint32_t bootloaderRequest = persistentObjectRead(PERSISTENT_OBJECT_RESET_REASON);
|
||||
|
||||
if (bootloaderRequest != RESET_BOOTLOADER_REQUEST) {
|
||||
if (bootloaderRequest != RESET_BOOTLOADER_REQUEST_ROM) {
|
||||
return;
|
||||
}
|
||||
persistentObjectWrite(PERSISTENT_OBJECT_RESET_REASON, RESET_NONE);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue