Re: [Gpsbabel-code] [patch] WBT-200 patch for reading overful device
Brought to you by:
robertl
From: Robert L. <rob...@gm...> - 2008-10-20 03:26:40
|
I'm far from my Wintec right now, but this seems pretty reasonable. (These logger products really don't do the host programmers any favors, do they?) I've applied this. Thanx! RJL On Sun, Oct 19, 2008 at 8:19 AM, Dirkjan Krijnders <di...@ar... > wrote: > Hi all, > > I've been using gpsbabel for a year now to read my Wintec G-rays2 under Mac > OS X and it works almost always. I found that, especially with other > bluetooth devices attached, I'd get fatal read time-outs. I figured these > should not be fatal not they should trigger a retry. Second I found that > when the device writes beyond it maximum storage it starts again at the > beginning (this is the advertised behaviour), but that in this case gpsbabel > failed to read the device. I fixed both problem and the patch is attached. > > The changes are in wbt-200.c. Function wbt201_data_read() has been modified > to implement the "cycling" behaviour and the functions > wbt201_read_data_chuck(), want_bytes() and rd_buf() have been changed to > trigger the retry in case of a time-out. > > I've tried and tested this change for a couple of reads and works, hope it > works on other installations as well. > Greetings, > > Dirkjan > > > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gpsbabel-code mailing list http://www.gpsbabel.org > Gps...@li... > https://lists.sourceforge.net/lists/listinfo/gpsbabel-code > > |