From 4be6931e65e3985b292b0404996396f6c24027fa Mon Sep 17 00:00:00 2001 From: Philoul Date: Mon, 2 May 2022 21:12:48 +0200 Subject: [PATCH] Add Peak in Insulin interface --- .../androidaps/plugins/insulin/InsulinOrefBasePlugin.kt | 2 +- .../main/java/info/nightscout/androidaps/interfaces/Insulin.kt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/insulin/InsulinOrefBasePlugin.kt b/app/src/main/java/info/nightscout/androidaps/plugins/insulin/InsulinOrefBasePlugin.kt index a0d3652240..8300c9147a 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/insulin/InsulinOrefBasePlugin.kt +++ b/app/src/main/java/info/nightscout/androidaps/plugins/insulin/InsulinOrefBasePlugin.kt @@ -101,7 +101,7 @@ abstract class InsulinOrefBasePlugin( return comment } - abstract val peak: Int + override abstract val peak: Int abstract fun commentStandardText(): String companion object { diff --git a/core/src/main/java/info/nightscout/androidaps/interfaces/Insulin.kt b/core/src/main/java/info/nightscout/androidaps/interfaces/Insulin.kt index ab3a8296e3..d483553ba1 100644 --- a/core/src/main/java/info/nightscout/androidaps/interfaces/Insulin.kt +++ b/core/src/main/java/info/nightscout/androidaps/interfaces/Insulin.kt @@ -27,6 +27,7 @@ interface Insulin : ConfigExportImport { val friendlyName: String val comment: String val dia: Double + val peak: Int fun iobCalcForTreatment(bolus: Bolus, time: Long, dia: Double): Iob