changeset 1399:1bc2e99ec44b

* src/main.c: Restore correct old baud rate if changing fails.
author asl
date Mon, 24 Nov 2003 21:12:07 +0000
parents 4f98ee8c6707
children 707a873489c8
files packages/redboot/current/ChangeLog packages/redboot/current/src/main.c
diffstat 2 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/packages/redboot/current/ChangeLog
+++ b/packages/redboot/current/ChangeLog
@@ -11,6 +11,10 @@ 2002-11-20  Jani Monoses  <jani@iv.ro>
 
 	* src/flash.c: flash_init() no longer takes three args.
 
+2003-11-19  David Woodhouse  <dwmw2@redhat.com>
+ 
+ 	* src/main.c: Restore correct old baud rate if changing fails.
+ 
 2003-11-13  Gary Thomas  <gary@mlbassoc.com>
 
 	* src/main.c (do_go): Need to stop catching exceptions when running a
--- a/packages/redboot/current/src/main.c
+++ b/packages/redboot/current/src/main.c
@@ -695,7 +695,6 @@ do_baud_rate(int argc, char *argv[])
             }
             return;  // Couldn't set the desired rate
         }
-        old_rate = ret;
         // Make sure this new rate works or back off to previous value
         // Sleep for a few seconds, then prompt to see if it works
         _sleep(3000);  // Give serial time to flush