Skip to content

Commit 785a909

Browse files
committed
Fix MB without COM
1 parent 7ee1917 commit 785a909

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

Loop.xcodeproj/project.pbxproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3351,7 +3351,7 @@
33513351
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
33523352
CODE_SIGN_IDENTITY = "iPhone Developer: [email protected] (XZN842LDLT)";
33533353
COPY_PHASE_STRIP = NO;
3354-
CURRENT_PROJECT_VERSION = 011119a;
3354+
CURRENT_PROJECT_VERSION = 021119a;
33553355
DEBUG_INFORMATION_FORMAT = dwarf;
33563356
ENABLE_STRICT_OBJC_MSGSEND = YES;
33573357
ENABLE_TESTABILITY = YES;
@@ -3423,7 +3423,7 @@
34233423
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
34243424
CODE_SIGN_IDENTITY = "iPhone Developer: [email protected] (XZN842LDLT)";
34253425
COPY_PHASE_STRIP = NO;
3426-
CURRENT_PROJECT_VERSION = 011119a;
3426+
CURRENT_PROJECT_VERSION = 021119a;
34273427
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
34283428
ENABLE_NS_ASSERTIONS = NO;
34293429
ENABLE_STRICT_OBJC_MSGSEND = YES;

Loop/Managers/LoopDataManager.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1113,7 +1113,8 @@ extension LoopDataManager {
11131113
return
11141114
}
11151115

1116-
let maxMicroBolus = currentBasalRate * settings.microbolusesSize / 60
1116+
let maxBasalMinutes = cob > 0 ? settings.microbolusesSize : settings.microbolusesWithoutCarbsSize
1117+
let maxMicroBolus = currentBasalRate * maxBasalMinutes / 60
11171118

11181119
let volumeRounder = { (_ units: Double) in
11191120
self.delegate?.loopDataManager(self, roundBolusVolume: units) ?? units

0 commit comments

Comments
 (0)