diff --git a/plugins/sync/src/main/kotlin/app/aaps/plugins/sync/garmin/LoopHub.kt b/plugins/sync/src/main/kotlin/app/aaps/plugins/sync/garmin/LoopHub.kt index f2dc1b8a7f..5d4ac7dbd9 100644 --- a/plugins/sync/src/main/kotlin/app/aaps/plugins/sync/garmin/LoopHub.kt +++ b/plugins/sync/src/main/kotlin/app/aaps/plugins/sync/garmin/LoopHub.kt @@ -20,8 +20,8 @@ interface LoopHub { /** Returns the remaining bolus insulin on board. */ val insulinOnboard: Double - /** Returns the remaining bolus and basal insulin on board. */ - val insulinTotalOnboard: Double + /** Returns the basal insulin on board. */ + val insulinBasalOnboard: Double /** Returns the remaining carbs on board. */ val carbsOnboard: Double? @@ -35,9 +35,6 @@ interface LoopHub { /** Returns the factor by which the basal rate is currently raised (> 1) or lowered (< 1). */ val temporaryBasal: Double - /** Returns the temporary basal rate in percent */ - val temporaryBasalPercent: String - /** Tells the loop algorithm that the pump is physically connected. */ fun connectPump() @@ -51,6 +48,9 @@ interface LoopHub { /** Notifies the system that carbs were eaten and stores the value. */ fun postCarbs(carbohydrates: Int) + /** Stores or cancels a temptarget. */ + fun postTempTarget(target: Double, duration: Int) + /** Stores hear rate readings that a taken and averaged of the given interval. */ fun storeHeartRate( samplingStart: Instant, samplingEnd: Instant,