Explorar o código

Adjust FIXME comments and comment out LOC

Deniz Cengiz hai 11 meses
pai
achega
f9fc85a5c0

+ 1 - 1
Trio/Sources/APS/OpenAPSSwift/DetermineBasal/DetermineBasal+Helpers.swift

@@ -269,7 +269,7 @@ extension DeterminationGenerator {
         // TODO: throw error for malformed IobResult? Can this be malformed?
 
         let lastTempAge = Int(currentTime.timeIntervalSince(lastTempDate) / 60) // in minutes
-        let tempModulus = Int(lastTempAge + currentTemp.duration) % 30
+//        let tempModulus = Int(lastTempAge + currentTemp.duration) % 30 // only used in JS as output; will leave it here for now
 
         if currentTemp.rate != lastTemp.rate, lastTempAge > 10, currentTemp.duration > 0 {
             // Rates don’t match and temp is old: cancel temp

+ 1 - 1
Trio/Sources/APS/OpenAPSSwift/Logging/OrefFunction.swift

@@ -44,7 +44,7 @@ enum OrefFunction: String, Codable {
         case .autosens:
             return Set()
         case .determineBasal:
-            // FIXME: Fill in the properties we don't check here
+            // FIXME: Adjust as we go
             return Set([
                 "id",
                 "reason",

+ 0 - 2
Trio/Sources/APS/OpenAPSSwift/OpenAPSSwift.swift

@@ -105,9 +105,7 @@ struct OpenAPSSwift {
                 currentTime: clock
             )
 
-            // FIXME: fill in with result once we have it
             return (try .success(JSONBridge.to(rawDetermination)), determineBasalInputs)
-//            return (.success(RawJSON.null), determineBasalInputs)
 
         } catch {
             return (.failure(error), determineBasalInputs)