Explorar el Código

Merge pull request #6 from nightscout/feat-dexcomoneplus

Sjoerd-Bo3 hace 2 años
padre
commit
1a2ebf0bfc
Se han modificado 2 ficheros con 7 adiciones y 5 borrados
  1. 2 1
      Dependencies/G7SensorKit/G7SensorKit/G7CGMManager/G7Sensor.swift
  2. 5 4
      README.md

+ 2 - 1
Dependencies/G7SensorKit/G7SensorKit/G7CGMManager/G7Sensor.swift

@@ -215,7 +215,8 @@ public final class G7Sensor: G7BluetoothManagerDelegate {
         }
 
         /// The Dexcom G7 advertises a peripheral name of "DXCMxx", and later reports a full name of "Dexcomxx"
-        if name.hasPrefix("DXCM") {
+        /// Dexcom One+ peripheral name start with "DX02"
+        if name.hasPrefix("DXCM") || name.hasPrefix("DX02"){
             // If we're following this name or if we're scanning, connect
             if let sensorName = sensorID, name.suffix(2) == sensorName.suffix(2) {
                 return .makeActive

+ 5 - 4
README.md

@@ -45,11 +45,12 @@ https://loopkit.github.io/loopdocs/gh-actions/gh-overview/
 
 # CGM Sensors
 
-- Dexcom G5
-- Dexcom G6
+- Dexcom G5  
+- Dexcom G6   
 - Dexcom ONE
-- Dexcom G7
-- Libre 1
+- Dexcom ONE+   
+- Dexcom G7   
+- Libre 1   
 - Libre 2 (European)
 - Medtronic Enlite
 - Nightscout as CGM