Просмотр исходного кода

Recognize Atlas DASH pod in Omnipod heartbeat scan (#633)

Atlas pods advertise as "InPlay BLE" instead of "TWI BOARD" but use
the same OmniBLE service and characteristic UUIDs, so the existing
heartbeat transmitter works as-is once the scanner accepts the name.

Fixes #630
Jonas Björkert 2 месяцев назад
Родитель
Сommit
fd81a69a53
1 измененных файлов с 4 добавлено и 2 удалено
  1. 4 2
      LoopFollow/BackgroundRefresh/BackgroundRefreshType.swift

+ 4 - 2
LoopFollow/BackgroundRefresh/BackgroundRefreshType.swift

@@ -61,8 +61,10 @@ enum BackgroundRefreshType: String, Codable, CaseIterable {
 
         case .omnipodDash:
             if let name = device.name {
-                // actual DASH or rPi DASH simulator
-                return name == "TWI BOARD" || name == " :: Fake POD ::"
+                // "TWI BOARD": original DASH pod
+                // "InPlay BLE": newer Atlas DASH pod
+                // " :: Fake POD ::": rPi DASH simulator
+                return name == "TWI BOARD" || name == "InPlay BLE" || name == " :: Fake POD ::"
             }
             return false