Skip to content

Commit bcf6447

Browse files
committed
Add Stelo support
1 parent 2be3eb2 commit bcf6447

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

G7SensorKit/G7CGMManager/G7Sensor.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,8 +215,9 @@ 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-
/// Dexcom One+ peripheral name start with "DX02"
219-
if name.hasPrefix("DXCM") || name.hasPrefix("DX02"){
218+
/// The Dexcom Stelo prelix is "DX01"
219+
/// The Dexcom One+ prefix is "DX02"
220+
if name.hasPrefix("DXCM") || name.hasPrefix("DX01") || name.hasPrefix("DX02"){
220221
// If we're following this name or if we're scanning, connect
221222
if let sensorName = sensorID, name.suffix(2) == sensorName.suffix(2) {
222223
return .makeActive

G7SensorKitUI/Views/G7StartupView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ struct G7StartupView: View {
2828
.frame(height: 120)
2929
.padding(.horizontal)
3030
}.frame(maxWidth: .infinity)
31-
Text(String(format: LocalizedString("%1$@ can read G7 CGM data, but you must still use the Dexcom G7 App for pairing, calibration, and other sensor management.", comment: "Descriptive text on G7StartupView (1: appName)"), self.appName))
31+
Text(String(format: LocalizedString("%1$@ can read CGM data from the G7 platform, but you must still use the Dexcom App for pairing, calibration, and other sensor management available to the sensor series (G7, ONE+, Stelo).", comment: "Descriptive text on G7StartupView (1: appName)"), self.appName))
3232
.fixedSize(horizontal: false, vertical: true)
3333
.foregroundColor(.secondary)
3434
Spacer()

G7SensorPlugin/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
<key>NSPrincipalClass</key>
2424
<string>G7SensorPlugin</string>
2525
<key>com.loopkit.Loop.CGMManagerDisplayName</key>
26-
<string>Dexcom G7 / ONE+</string>
26+
<string>Dexcom G7 / ONE+ / Stelo</string>
2727
<key>com.loopkit.Loop.CGMManagerIdentifier</key>
2828
<string>G7CGMManager</string>
2929
</dict>

0 commit comments

Comments
 (0)