Jelajahi Sumber

minor comment updates

Joe Moran 6 bulan lalu
induk
melakukan
60ed07148b

+ 1 - 1
Trio/Sources/APS/APSManager.swift

@@ -204,7 +204,7 @@ final class BaseAPSManager: APSManager, Injectable {
             }
             }
             .store(in: &lifetime)
             .store(in: &lifetime)
 
 
-        // manage a manual Temp Basal from PumpManager - force loop() after temp basal is cancelled or finishes
+        // manage a manual Temp Basal from PumpManager - force loop() after manual temp basal is cancelled or finishes
         deviceDataManager.manualTempBasal
         deviceDataManager.manualTempBasal
             .receive(on: processQueue)
             .receive(on: processQueue)
             .sink { manualBasal in
             .sink { manualBasal in

+ 2 - 2
Trio/Sources/APS/Storage/TDDStorage.swift

@@ -660,9 +660,9 @@ extension Decimal {
     }
     }
 }
 }
 
 
-/// XXX Will be moving this utility function to a new file
+/// Moved out from findBasalRate()
 ///
 ///
-/// Finds the basal rate for a specific offset in a day using binary search
+/// Finds the basal rate at the specified minute offset using binary search
 /// - Parameters:
 /// - Parameters:
 ///   - totalMinutes: minute offset into a 24 hour day
 ///   - totalMinutes: minute offset into a 24 hour day
 ///   - profile: Array of basal profile entries sorted by time
 ///   - profile: Array of basal profile entries sorted by time

+ 1 - 1
Trio/Sources/Modules/Home/HomeStateModel+Setup/PumpHistorySetup.swift

@@ -43,7 +43,7 @@ extension Home.StateModel {
         manualTempBasal = apsManager.isManualTempBasal
         manualTempBasal = apsManager.isManualTempBasal
         tempBasals = insulinFromPersistence.filter { $0.tempBasal != nil }
         tempBasals = insulinFromPersistence.filter { $0.tempBasal != nil }
 
 
-        /// The suspensions variable is actually is a list of all pump suspend and resume events
+        /// The suspensions variable is the list of all pump suspend and resume events
         suspensions = insulinFromPersistence.filter {
         suspensions = insulinFromPersistence.filter {
             $0.type == EventType.pumpSuspend.rawValue || $0.type == EventType.pumpResume.rawValue
             $0.type == EventType.pumpSuspend.rawValue || $0.type == EventType.pumpResume.rawValue
         }
         }