Explorar o código

Fix DASH pod deactivation for simulator by setting podComms delegate (#479)

Joe Moran %!s(int64=2) %!d(string=hai) anos
pai
achega
ed561c9ee0

+ 3 - 0
Dependencies/OmniBLE/OmniBLE/PumpManager/OmniBLEPumpManager.swift

@@ -775,6 +775,9 @@ extension OmniBLEPumpManager {
 
         self.podComms = PodComms(podState: podState, myId: state.controllerId, podId: state.podId)
 
+        self.podComms.delegate = self
+        self.podComms.messageLogger = self
+
         setState({ (state) in
             state.updatePodStateFromPodComms(podState)
             state.scheduledExpirationReminderOffset = state.defaultExpirationReminderOffset