[Gpsbabel-code] Real-time tracking mode does not clean up on CTRL-C?
Brought to you by:
robertl
From: Ture P. <tur...@gm...> - 2010-12-21 17:16:21
|
(Hardware: Garmin eTrex Vista HCx, Intel-based Mac; Software: gpsbabel 1.4.2, MacOS 10.6) If I run gpsbabel in the "-T" mode, stop it with CTRL-C, and then start it again, it reports an error (see below) and the GPS device turns itself off. It seems like protocol state does not get properly cleaned up on CTRL-C. The enclosed quick-and-dirty patch solves the problem for me, though I have no idea whether it is The Right Thing. It does two things: 1) change a 'fatal' to a plain printf to keep the program from exiting before the clean-up code is executed and 2) actually write some clean-up code. :-) -- Ture Error: Bad cmdsend r -1 sz 12 usb_bulk_write failed. 'usb_bulk_write: An error occured during write (see messages above)' |