|
@@ -168,8 +168,8 @@ extension MainViewController {
|
|
|
var trigger = true
|
|
var trigger = true
|
|
|
if (UserDefaultsRepository.alertNotLoopingUseLimits.value
|
|
if (UserDefaultsRepository.alertNotLoopingUseLimits.value
|
|
|
&& (
|
|
&& (
|
|
|
- (Float(currentBG) <= UserDefaultsRepository.alertNotLoopingUpperLimit.value
|
|
|
|
|
- && Float(currentBG) >= UserDefaultsRepository.alertNotLoopingLowerLimit.value) ||
|
|
|
|
|
|
|
+ (Float(currentBG) >= UserDefaultsRepository.alertNotLoopingUpperLimit.value
|
|
|
|
|
+ && Float(currentBG) <= UserDefaultsRepository.alertNotLoopingLowerLimit.value) ||
|
|
|
// Ignore Limits if BG reading is older than non looping time
|
|
// Ignore Limits if BG reading is older than non looping time
|
|
|
(Double(now - currentBGTime) >= Double(UserDefaultsRepository.alertNotLooping.value * 60))
|
|
(Double(now - currentBGTime) >= Double(UserDefaultsRepository.alertNotLooping.value * 60))
|
|
|
) ||
|
|
) ||
|