1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-15 20:35:33 +03:00

Fix BOATLOADER_ defines typo

* Missed in review, sorry!
* A-oooga I'm a boat
This commit is contained in:
AJ Christensen 2019-06-25 07:30:50 +12:00
parent 01788322b6
commit 45e8d74255
4 changed files with 5 additions and 5 deletions

View file

@ -3339,7 +3339,7 @@ static void cliRebootEx(rebootTarget_e rebootTarget)
break; break;
#if defined(USE_FLASH_BOOT_LOADER) #if defined(USE_FLASH_BOOT_LOADER)
case REBOOT_TARGET_BOOTLOADER_FLASH: case REBOOT_TARGET_BOOTLOADER_FLASH:
systemResetToBootloader(BOATLOADER_REQUEST_FLASH); systemResetToBootloader(BOOTLOADER_REQUEST_FLASH);
break; break;
#endif #endif

View file

@ -52,7 +52,7 @@ typedef enum {
typedef enum { typedef enum {
BOOTLOADER_REQUEST_ROM, BOOTLOADER_REQUEST_ROM,
BOATLOADER_REQUEST_FLASH, BOOTLOADER_REQUEST_FLASH,
} bootloaderRequestType_e; } bootloaderRequestType_e;
// failure // failure

View file

@ -249,7 +249,7 @@ void systemResetToBootloader(bootloaderRequestType_e requestType)
{ {
switch (requestType) { switch (requestType) {
#if defined(USE_FLASH_BOOT_LOADER) #if defined(USE_FLASH_BOOT_LOADER)
case BOATLOADER_REQUEST_FLASH: case BOOTLOADER_REQUEST_FLASH:
persistentObjectWrite(PERSISTENT_OBJECT_RESET_REASON, RESET_FLASH_BOOTLOADER_REQUEST); persistentObjectWrite(PERSISTENT_OBJECT_RESET_REASON, RESET_FLASH_BOOTLOADER_REQUEST);
break; break;
@ -273,7 +273,7 @@ void systemCheckResetReason(void)
switch (bootloaderRequest) { switch (bootloaderRequest) {
#if defined(USE_FLASH_BOOT_LOADER) #if defined(USE_FLASH_BOOT_LOADER)
case BOATLOADER_REQUEST_FLASH: case BOOTLOADER_REQUEST_FLASH:
#endif #endif
case RESET_BOOTLOADER_REQUEST: case RESET_BOOTLOADER_REQUEST:
persistentObjectWrite(PERSISTENT_OBJECT_RESET_REASON, RESET_BOOTLOADER_POST); persistentObjectWrite(PERSISTENT_OBJECT_RESET_REASON, RESET_BOOTLOADER_POST);

View file

@ -452,7 +452,7 @@ static void mspProcessPendingRequest(mspPort_t * mspPort)
break; break;
#if defined(USE_FLASH_BOOT_LOADER) #if defined(USE_FLASH_BOOT_LOADER)
case MSP_PENDING_BOOTLOADER_ROM: case MSP_PENDING_BOOTLOADER_ROM:
systemResetToBootloader(BOATLOADER_REQUEST_FLASH); systemResetToBootloader(BOOTLOADER_REQUEST_FLASH);
break; break;
#endif #endif