Skip to content

Commit

Permalink
Display scheduled basal dots
Browse files Browse the repository at this point in the history
UI bug fix for issue nr 60: #60
  • Loading branch information
Jon-b-m committed Jun 4, 2023
1 parent 699d28d commit ffecdda
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions FreeAPS/Sources/Modules/Home/View/Chart/MainChartView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -667,8 +667,9 @@ extension MainChartView {
path.addLine(to: CGPoint(x: lastPoint.x, y: Config.basalHeight))
path.addLine(to: CGPoint(x: 0, y: Config.basalHeight))
}

let endDateTime = dayAgoTime + min(max(screenHours, 2), 24).hours.timeInterval + min(max(screenHours, 2), 24).hours
let adjustForOptionalExtraHours = screenHours > 12 ? screenHours - 12 : 0
let endDateTime = dayAgoTime + min(max(screenHours - adjustForOptionalExtraHours, 12), 24).hours
.timeInterval + min(max(screenHours - adjustForOptionalExtraHours, 12), 24).hours
.timeInterval
let autotunedBasalPoints = findRegularBasalPoints(
timeBegin: dayAgoTime,
Expand Down

0 comments on commit ffecdda

Please sign in to comment.