# HG changeset patch # User asl # Date 1069708327 0 # Node ID 1bc2e99ec44b8571dc6f105a5dc6d0814e9be460 # Parent 4f98ee8c67075645ea93ef786bc7a1bea5f13d3b * src/main.c: Restore correct old baud rate if changing fails. diff --git a/packages/redboot/current/ChangeLog b/packages/redboot/current/ChangeLog --- a/packages/redboot/current/ChangeLog +++ b/packages/redboot/current/ChangeLog @@ -11,6 +11,10 @@ 2002-11-20 Jani Monoses * src/flash.c: flash_init() no longer takes three args. +2003-11-19 David Woodhouse + + * src/main.c: Restore correct old baud rate if changing fails. + 2003-11-13 Gary Thomas * src/main.c (do_go): Need to stop catching exceptions when running a diff --git a/packages/redboot/current/src/main.c b/packages/redboot/current/src/main.c --- 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