Browse Source

add rileylink error to pumWarningMatche

kskandis 1 year ago
parent
commit
dc1fcd1408
1 changed files with 2 additions and 1 deletions
  1. 2 1
      Trio/Sources/APS/APSManager.swift

+ 2 - 1
Trio/Sources/APS/APSManager.swift

@@ -57,7 +57,8 @@ enum APSError: LocalizedError {
     static func pumpWarningMatches(message: String) -> Bool {
         message.contains(String(localized: "Invalid Pump State")) || message
             .contains("PumpMessage") || message
-            .contains("PumpOpsError") || message.contains("RileyLink")
+            .contains("PumpOpsError") || message.contains("RileyLink") || message
+            .contains(String(localized: "Pump did not respond in time"))
     }
 }