eventualBG from suggestion (rT in oref) receives a special treatment as there was a mistake in oref that did not convert eventualBG via oref function convert_bg(eventualBG,profile) into whatever user had chosen as BG unit. It was always handed over as an Integer in mg/dL. Fixing this in oref will issue errors in fax due to:
-
|
@Published var eventualBG: Int? |
|
private func evetualBGStraing() -> String? { |
I am easily able to fix 1 and 2, but not 3 and the resulting issues in
|
if let eventualBG = state.eventualBG { |
eventualBG from suggestion (rT in oref) receives a special treatment as there was a mistake in oref that did not convert eventualBG via oref function convert_bg(eventualBG,profile) into whatever user had chosen as BG unit. It was always handed over as an Integer in mg/dL. Fixing this in oref will issue errors in fax due to:
freeaps/FreeAPS/Sources/Models/Suggestion.swift
Line 7 in 3a2908c
freeaps/FreeAPS/Sources/Modules/Home/HomeStateModel.swift
Line 43 in 3a2908c
freeaps/FreeAPS/Sources/Services/WatchManager/WatchManager.swift
Line 143 in 3a2908c
I am easily able to fix 1 and 2, but not 3 and the resulting issues in
freeaps/FreeAPS/Sources/Modules/Home/View/HomeRootView.swift
Line 241 in 3a2908c