소스 검색

Typo which prevented change of imported DIA setting

Jon Mårtensson 2 년 전
부모
커밋
2557abf501
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      FreeAPS/Sources/Modules/NightscoutConfig/NightscoutConfigStateModel.swift

+ 3 - 1
FreeAPS/Sources/Modules/NightscoutConfig/NightscoutConfigStateModel.swift

@@ -266,7 +266,9 @@ extension NightscoutConfig {
                                 debug(.service, "Settings have been imported and the Basals saved to pump!")
                                 debug(.service, "Settings have been imported and the Basals saved to pump!")
                                 // DIA. Save if changed.
                                 // DIA. Save if changed.
                                 let dia = fetchedProfile.dia
                                 let dia = fetchedProfile.dia
-                                if dia != self.dia, dia <= 0 {
+                                print("dia: " + dia.description)
+                                print("pump dia: " + self.dia.description)
+                                if dia != self.dia, dia >= 0 {
                                     let file = PumpSettings(
                                     let file = PumpSettings(
                                         insulinActionCurve: dia,
                                         insulinActionCurve: dia,
                                         maxBolus: self.maxBolus,
                                         maxBolus: self.maxBolus,