Skip to content

Commit d9a2c0d

Browse files
committed
Return previous behaviour of 'b' and 'r' commands
By mistake previous command changed 'b' and 'r' to flash second taget not first one.
1 parent c0b3edc commit d9a2c0d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Src/main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -394,15 +394,15 @@ void StartDefaultTask(void const * argument)
394394
if (usb_open_file("red.bin", &file, FA_READ) != 0) {
395395
break;
396396
}
397-
target_list.next->next->ops->flash_target(target_list.next->next->priv, &file, &progress);
397+
target_list.next->ops->flash_target(target_list.next->priv, &file, &progress);
398398
usb_close_file(&file);
399399
break;
400400
case 'b':
401401
progress = 0;
402402
if (usb_open_file("blue.bin", &file, FA_READ) != 0) {
403403
break;
404404
}
405-
target_list.next->next->ops->flash_target(target_list.next->next->priv, &file, &progress);
405+
target_list.next->ops->flash_target(target_list.next->priv, &file, &progress);
406406
usb_close_file(&file);
407407
break;
408408
}

0 commit comments

Comments
 (0)