diff --git a/FreeAPS/Sources/APS/FetchGlucoseManager.swift b/FreeAPS/Sources/APS/FetchGlucoseManager.swift index 7f13ba7ab..e42053ae3 100644 --- a/FreeAPS/Sources/APS/FetchGlucoseManager.swift +++ b/FreeAPS/Sources/APS/FetchGlucoseManager.swift @@ -298,7 +298,9 @@ final class BaseFetchGlucoseManager: FetchGlucoseManager, Injectable { // overcalibrate var overcalibration: ((Int) -> (Double))? processQueue.sync { - overcalibration = calibrationService.calibrate + if let cal = calibrationService { + overcalibration = cal.calibrate + } } if let overcalibration = overcalibration {