altoslib: Close serial port when AltosFlash fails to detect a target
authorKeith Packard <keithp@keithp.com>
Mon, 18 Aug 2014 03:51:36 +0000 (20:51 -0700)
committerKeith Packard <keithp@keithp.com>
Mon, 18 Aug 2014 03:51:36 +0000 (20:51 -0700)
commitee9f68ec877e3e5a67179f8c8abafbccc80eb804
treef5e84fff75f8a96eb97a86f23f90fb0532744202
parent76fd424e4624cb376ac2cf84b01b77599756680a
altoslib: Close serial port when AltosFlash fails to detect a target

AltosDebug.check_connection raises an exception when the link fails,
but the AltosFlash constructor didn't close the serial port in this
case, causing the serial port to appear to be busy.

Signed-off-by: Keith Packard <keithp@keithp.com>
altoslib/AltosFlash.java