Skip to content

Commit

Permalink
try to fix calibration error in first start
Browse files Browse the repository at this point in the history
fix #92 (hope)
  • Loading branch information
avouspierre committed Apr 13, 2024
1 parent de9cd83 commit a460a44
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion FreeAPS/Sources/APS/FetchGlucoseManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit a460a44

Please sign in to comment.