Преглед изворни кода

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

Joe Moran пре 2 година
родитељ
комит
ed561c9ee0
1 измењених фајлова са 3 додато и 0 уклоњено
  1. 3 0
      Dependencies/OmniBLE/OmniBLE/PumpManager/OmniBLEPumpManager.swift

+ 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