From: Piotr Dymacz Date: Fri, 16 Jun 2017 11:45:33 +0000 (+0200) Subject: Fix {load,save}_baudrate value in saves/load{b,s,y} commands X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=a498099b16e1a0b6880d98bc20ef9018e129df47;p=oweals%2Fu-boot_mod.git Fix {load,save}_baudrate value in saves/load{b,s,y} commands --- diff --git a/u-boot/common/cmd_load.c b/u-boot/common/cmd_load.c index 4556d89..1c4004d 100644 --- a/u-boot/common/cmd_load.c +++ b/u-boot/common/cmd_load.c @@ -116,6 +116,8 @@ int do_load_serial(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]) if(i == N_BAUDRATES){ printf_err("baudrate %d bps is not supported, will use current: %d bps\n", load_baudrate, current_baudrate); + + load_baudrate = current_baudrate; } else { switch_baudrate(load_baudrate, 0); } @@ -310,6 +312,8 @@ int do_save_serial(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]) if(i == N_BAUDRATES){ printf_err("baudrate %d bps is not supported, will use current: %d bps\n", save_baudrate, current_baudrate); + + save_baudrate = current_baudrate; } else { switch_baudrate(save_baudrate, 0); } @@ -504,6 +508,8 @@ int do_load_serial_bin(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]) if(i == N_BAUDRATES){ printf_err("baudrate %d bps is not supported, will use current: %d bps\n", load_baudrate, current_baudrate); + + load_baudrate = current_baudrate; } else { switch_baudrate(load_baudrate, 0); }