From 7690419c6c904528575149486cb7f84bdf9f249b Mon Sep 17 00:00:00 2001 From: Milos Kozak Date: Mon, 13 Sep 2021 21:05:01 +0200 Subject: [PATCH] always show basal in NSClient mode --- .../androidaps/plugins/general/overview/OverviewFragment.kt | 2 +- .../info/nightscout/androidaps/interfaces/PumpDescription.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/general/overview/OverviewFragment.kt b/app/src/main/java/info/nightscout/androidaps/plugins/general/overview/OverviewFragment.kt index cfc0eaac7e..bddee95f50 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/general/overview/OverviewFragment.kt +++ b/app/src/main/java/info/nightscout/androidaps/plugins/general/overview/OverviewFragment.kt @@ -740,7 +740,7 @@ class OverviewFragment : DaggerFragment(), View.OnClickListener, OnLongClickList graphData.addTreatments() if (menuChartSettings[0][OverviewMenus.CharType.ACT.ordinal]) graphData.addActivity(0.8) - if (pump.pumpDescription.isTempBasalCapable && menuChartSettings[0][OverviewMenus.CharType.BAS.ordinal]) + if ((pump.pumpDescription.isTempBasalCapable || config.NSCLIENT) && menuChartSettings[0][OverviewMenus.CharType.BAS.ordinal]) graphData.addBasals() graphData.addTargetLine() graphData.addNowLine(dateUtil.now()) diff --git a/core/src/main/java/info/nightscout/androidaps/interfaces/PumpDescription.kt b/core/src/main/java/info/nightscout/androidaps/interfaces/PumpDescription.kt index 136e899a2c..003d8f569e 100644 --- a/core/src/main/java/info/nightscout/androidaps/interfaces/PumpDescription.kt +++ b/core/src/main/java/info/nightscout/androidaps/interfaces/PumpDescription.kt @@ -63,7 +63,7 @@ class PumpDescription() { is30minBasalRatesCapable = false isRefillingCapable = true isBatteryReplaceable = true - storesCarbInfo = true + storesCarbInfo = false supportsTDDs = false needsManualTDDLoad = true hasCustomUnreachableAlertCheck = false