altosui: flush replies from serial link when entering debug mode
authorKeith Packard <keithp@keithp.com>
Tue, 24 Aug 2010 23:43:38 +0000 (16:43 -0700)
committerKeith Packard <keithp@keithp.com>
Tue, 24 Aug 2010 23:43:38 +0000 (16:43 -0700)
We use replies in debug mode a lot and depend on them matching the
expected parameters. The case which caused trouble was using
TeleMetrum to reprogram TeleDongle -- sending the 'm 0' command (to
disable telemetry monitoring on TeleDongle) to the TeleMetrum caused
it to reply 'Syntax Error' which confused the subsequent flashing
operation. Flushing that reply gets things back in sync.

Signed-off-by: Keith Packard <keithp@keithp.com>

No differences found