Dear all,

please find attached patch of GarminDev for supporting eTrexLegendHCx
devices. It's simply a copy of the eTrexVistaHCx driver, as -- for my 
understanding -- LegendHCx and VistaHCx are identical except magnetic 
compass and altimeter. It seems to work unter Linux.  

****---*------*------*------*------*------*------*------*------*------*
*\Viele    --     Volker Bosch,  Humboldtstr.21, 70771 Leinf.-Echterdingen
**\ Gruesse  --     Tel:(0711)713967,  E-Mail: [email protected] 
***\           --       http://www.s-line.de/homepages/bosch
Index: src/GPSMap60CSx/loader.cpp
===================================================================
--- src/GPSMap60CSx/loader.cpp  (revision 1151)
+++ src/GPSMap60CSx/loader.cpp  (working copy)
@@ -164,7 +164,6 @@
     return GPSMap60CSx::device;
 }
 
-
 extern "C" WIN_EXPORT Garmin::IDevice * initEtrexVentureHC(const char * 
version)
 {
     if(strncmp(version,INTERFACE_VERSION,5) != 0) {
@@ -197,3 +196,19 @@
 
     return GPSMap60CSx::device;
 }
+
+extern "C" WIN_EXPORT Garmin::IDevice * initEtrexLegendHCx(const char * 
version)
+{
+    if(strncmp(version,INTERFACE_VERSION,5) != 0) {
+        return 0;
+    }
+    if(GPSMap60CSx::device == 0) {
+        GPSMap60CSx::device = new GPSMap60CSx::CDevice();
+    }
+    GPSMap60CSx::device->devname        = "eTrex Legend HCx";
+    GPSMap60CSx::device->devid          = 0x0694;
+    GPSMap60CSx::device->screenwidth    = 176;
+    GPSMap60CSx::device->screenheight   = 220;
+
+    return GPSMap60CSx::device;
+}
Index: src/GPSMap60CSx/CMakeLists.txt
===================================================================
--- src/GPSMap60CSx/CMakeLists.txt      (revision 1151)
+++ src/GPSMap60CSx/CMakeLists.txt      (working copy)
@@ -22,6 +22,7 @@
     GPSMap76CSx
     EtrexVentureHC
     EtrexVistaHCx
+    EtrexLegendHCx
     GPSMap76Cx
     Quest
 )
------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
QLandkarte-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qlandkarte-users

Reply via email to