astyle src/drivers/bootloaders

This commit is contained in:
Daniel Agar
2017-01-28 16:24:26 -05:00
committed by Lorenz Meier
parent 8ab79a2c90
commit 32da3381f7
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -72,7 +72,7 @@ typedef enum {
Repeating = modeRepeating,
Timeout = modeTimeout,
modeMsk = 0x3 ,
modeMsk = 0x3,
running = modeStarted,
inuse = 0x80,
+2 -2
View File
@@ -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)) {
;