Skip to content

Commit eba7d98

Browse files
authored
Merge pull request #25 from loopandlearn/add_dexcom_one_plus
Add Dexcom One+ to allowed prefix
2 parents a6a6e4c + 3ad6902 commit eba7d98

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)