Commits

Adam Bird committed 9def5f7

added support for Edge 500 using Description rather than DisplayName in device data

  • Participants
  • Parent commits b80b5b7

Comments (0)

Files changed (1)

File src/garmin.js

         };
       }
       
-      this.displayName = readData('DisplayName');
+      // Edge 500 uses Description node rather than DisplayName
+      if (readData('DisplayName')() == "") {
+        this.displayName = readData('Description');
+      } else { 
+        this.displayName = readData('DisplayName')
+      }
       this.partNumber = readData('Model PartNumber');
       this.softwareVersion = readData('Model SoftwareVersion');