summaryrefslogtreecommitdiff
path: root/geography/gpsbabel/patches/patch-af
diff options
context:
space:
mode:
authorgdt <gdt>2010-07-05 00:05:22 +0000
committergdt <gdt>2010-07-05 00:05:22 +0000
commit8d56ccf5d43b3548d4f79fcbefb010ff5727485e (patch)
tree2e8802ee3fc19e8bc03a0ed01deb968a5480b683 /geography/gpsbabel/patches/patch-af
parent6d129d7a75d376dc16147d6de5e464cc7814605e (diff)
downloadpkgsrc-8d56ccf5d43b3548d4f79fcbefb010ff5727485e.tar.gz
Update to 1.4.1. (Read waypoints ok on netbsd-5/i386 from Garmin
etrex vista HCx.) Summary of Changes: (details at http://www.gpsbabel.org/news/20100620.html) Many new formats. New Features * KML writer now sets the extents of the time sliders automatically for Google Earth 5.0, can now generate gx:Track for Google Earth 5.2. * Improved handling of from Garmin extensions in GPX including ambient temperature, depth, heartrate, and cadence. * Reworked Garmin transparency device matching to work with more devices such as Nuvi 500 and Dakota * Add 'erase_only' option to dg-100. * GDB module now handles Garmin Basecamp files, too. * Try to preserve Ozi icon data in waypoints. * Holux GR245 waypoint now supported. * GUI detects host OS serial ports. * Add HDOP and VDOP to VPL 900. * Added track segment support for many formats, including GPX, delbin, and Garmin protocol. * Added track->tracksegment conversion filter option to track filter. * Convert tracks to courses on Garmin fitness upload. Major Fixes * Fix memory corruption in gbfile when line sizes were a multiple of internal buffer sizes. * Globalsat: flush receive on startup to make BT-335 more reliable. * Add Mega event icon, Whereigo cache type to GPX and KML. * Tweak Earth 5's realtime KML to include end of time window. * Several improvements to Garmin GPI reader. * Read and write fix information in delgpl format. * Garmin Venture HC and Legend H now works better on Mac and Linux. (especially Japanese models.) * Several improvements for OS/X Snow Leopard. * Alllow character set overwrite when sending to USB Garmins. * When writing Garmin routes, don't duplicate waypoints for via points.
Diffstat (limited to 'geography/gpsbabel/patches/patch-af')
-rw-r--r--geography/gpsbabel/patches/patch-af13
1 files changed, 6 insertions, 7 deletions
diff --git a/geography/gpsbabel/patches/patch-af b/geography/gpsbabel/patches/patch-af
index ef484c4c1a5..bce878d66e9 100644
--- a/geography/gpsbabel/patches/patch-af
+++ b/geography/gpsbabel/patches/patch-af
@@ -1,13 +1,13 @@
-$NetBSD: patch-af,v 1.2 2009/02/21 18:54:41 gdt Exp $
+$NetBSD: patch-af,v 1.3 2010/07/05 00:05:23 gdt Exp $
From Giles Lean, who places it in the public domain. Workarounds for
problems with buggy USB serial adapators. Not applied by upstream
2009-02-21 because it's too dangerous to work around problems without
understanding them.
---- jeeps/gpsread.c.orig 2006-04-19 22:20:18.000000000 -0400
+--- jeeps/gpsread.c.orig 2010-03-26 03:09:20.000000000 +0000
+++ jeeps/gpsread.c
-@@ -103,6 +103,37 @@ int32 GPS_Serial_Packet_Read(gpsdevh *fd
+@@ -103,6 +103,36 @@ int32 GPS_Serial_Packet_Read(gpsdevh *fd
if(!len)
{
@@ -36,16 +36,15 @@ understanding them.
+ */
+ if (u == 0x06 || u == 0x15)
+ {
-+ (*packet)->dle = DLE;
+ ++len;
+ (void) fprintf(stderr,"GPS_Packet_Read: inserted DLE due to 0x%02x.\n", u);
+ goto dle_missed;
+ }
+
- (*packet)->dle = u;
if(u != DLE)
{
-@@ -114,6 +145,7 @@ int32 GPS_Serial_Packet_Read(gpsdevh *fd
+ (void) fprintf(stderr,"GPS_Packet_Read: No DLE. Data received, but probably not a garmin packet.\n");
+@@ -113,6 +143,7 @@ int32 GPS_Serial_Packet_Read(gpsdevh *fd
continue;
}
@@ -53,7 +52,7 @@ understanding them.
if(len==1)
{
(*packet)->type = u;
-@@ -212,6 +244,20 @@ int32 GPS_Serial_Get_Ack(gpsdevh *fd, GP
+@@ -215,6 +246,20 @@ int32 GPS_Serial_Get_Ack(gpsdevh *fd, GP
if(*(*rec)->data != (*tra)->type)
{