mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-07 01:04:19 +08:00
astyle src/drivers/bootloaders
This commit is contained in:
committed by
Lorenz Meier
parent
8ab79a2c90
commit
32da3381f7
@@ -72,7 +72,7 @@ typedef enum {
|
||||
Repeating = modeRepeating,
|
||||
Timeout = modeTimeout,
|
||||
|
||||
modeMsk = 0x3 ,
|
||||
modeMsk = 0x3,
|
||||
running = modeStarted,
|
||||
inuse = 0x80,
|
||||
|
||||
|
||||
@@ -890,7 +890,7 @@ static flash_error_t file_read_and_program(const uavcan_Path_t *fw_path,
|
||||
*(uint32_t *)data = 0xffffffff;
|
||||
}
|
||||
|
||||
flash_status = bl_flash_write(flash_address + request.offset ,
|
||||
flash_status = bl_flash_write(flash_address + request.offset,
|
||||
data,
|
||||
length + (length & 1));
|
||||
|
||||
@@ -1413,7 +1413,7 @@ failure:
|
||||
|
||||
bootloader.health = HEALTH_CRITICAL;
|
||||
|
||||
bl_timer_id tmr = timer_allocate(modeTimeout | modeStarted , OPT_RESTART_TIMEOUT_MS, 0);
|
||||
bl_timer_id tmr = timer_allocate(modeTimeout | modeStarted, OPT_RESTART_TIMEOUT_MS, 0);
|
||||
|
||||
while (!timer_expired(tmr)) {
|
||||
;
|
||||
|
||||
Reference in New Issue
Block a user