|
|
@@ -1424,7 +1424,7 @@ extension MainViewController {
|
|
|
lastFoundIndex = sgv.foundIndex
|
|
|
|
|
|
var offset = -50
|
|
|
- if sgv.sgv < Double(250) {
|
|
|
+ if sgv.sgv < Double(topBG - 100) {
|
|
|
let bolusTime = findNearestBolusbyTime(timeWithin: 300, needle: dateTimeStamp, haystack: bolusData, startingIndex: lastFoundBolus)
|
|
|
lastFoundBolus = bolusTime.foundIndex
|
|
|
|