Skip to content

Commit

Permalink
Merge pull request #94 from avouspierre/alpha
Browse files Browse the repository at this point in the history
try to fix calibration error in first start
  • Loading branch information
bjornoleh committed Apr 13, 2024
2 parents de9cd83 + a460a44 commit 23e711a
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 23e711a

Please sign in to comment.