Selaa lähdekoodia

fix conditional colouring in lockscreen widget for mmol/l

polscm32 2 vuotta sitten
vanhempi
commit
b880ba6812

+ 2 - 2
FreeAPS/Sources/Services/LiveActivity/LiveActivityBridge.swift

@@ -73,8 +73,8 @@ extension LiveActivityAttributes.ContentState {
         let chartDate = chart.map(\.date)
         let chartDate = chart.map(\.date)
 
 
         /// glucose limits from settings
         /// glucose limits from settings
-        let highGlucose = settings.highGlucose
-        let lowGlucose = settings.lowGlucose
+        let highGlucose = settings.highGlucose / Decimal(conversionFactor)
+        let lowGlucose = settings.lowGlucose / Decimal(conversionFactor)
 
 
         let cob = suggestion.cob ?? 0
         let cob = suggestion.cob ?? 0
         let iob = suggestion.iob ?? 0
         let iob = suggestion.iob ?? 0