mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
AP_Bootloader: correct placement of AP_BOOTLOADER_ALWAYS_ERASE
this moves it outside of defined(BOOTLOADER_DEV_LIST)
This commit is contained in:
parent
8ccf51b0ed
commit
85fc178769
@ -22,6 +22,10 @@
|
||||
// optional uprintf() code for debug
|
||||
// #define BOOTLOADER_DEBUG SD1
|
||||
|
||||
#ifndef AP_BOOTLOADER_ALWAYS_ERASE
|
||||
#define AP_BOOTLOADER_ALWAYS_ERASE 0
|
||||
#endif
|
||||
|
||||
#if defined(BOOTLOADER_DEV_LIST)
|
||||
static BaseChannel *uarts[] = { BOOTLOADER_DEV_LIST };
|
||||
#if HAL_USE_SERIAL == TRUE
|
||||
@ -34,10 +38,6 @@ static uint8_t last_uart;
|
||||
#define BOOTLOADER_BAUDRATE 115200
|
||||
#endif
|
||||
|
||||
#ifndef AP_BOOTLOADER_ALWAYS_ERASE
|
||||
#define AP_BOOTLOADER_ALWAYS_ERASE 0
|
||||
#endif
|
||||
|
||||
// #pragma GCC optimize("O0")
|
||||
|
||||
static bool cin_data(uint8_t *data, uint8_t len, unsigned timeout_ms)
|
||||
|
Loading…
Reference in New Issue
Block a user