Skip to content

Commit 6b37518

Browse files
committed
Add Dexcom One+ to allowed prefix
1 parent 83d8aaf commit 6b37518

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

G7SensorKit/G7CGMManager/G7Sensor.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,8 @@ public final class G7Sensor: G7BluetoothManagerDelegate {
215215
}
216216

217217
/// The Dexcom G7 advertises a peripheral name of "DXCMxx", and later reports a full name of "Dexcomxx"
218-
if name.hasPrefix("DXCM") {
218+
/// Dexcom One+ peripheral name start with "DX02"
219+
if name.hasPrefix("DXCM") || name.hasPrefix("DX02"){
219220
// If we're following this name or if we're scanning, connect
220221
if let sensorName = sensorID, name.suffix(2) == sensorName.suffix(2) {
221222
return .makeActive

0 commit comments

Comments
 (0)