From 50232256507b6c660ba2fa994f055f6bc4d0216c Mon Sep 17 00:00:00 2001 From: Philoul Date: Fri, 9 Apr 2021 12:00:33 +0200 Subject: [PATCH] Add uel.log for Alert Carbs required --- .../info/nightscout/androidaps/plugins/aps/loop/LoopPlugin.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/aps/loop/LoopPlugin.kt b/app/src/main/java/info/nightscout/androidaps/plugins/aps/loop/LoopPlugin.kt index 3382500de6..23c08ffef6 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/aps/loop/LoopPlugin.kt +++ b/app/src/main/java/info/nightscout/androidaps/plugins/aps/loop/LoopPlugin.kt @@ -378,6 +378,8 @@ open class LoopPlugin @Inject constructor( // mId allows you to update the notification later on. mNotificationManager.notify(Constants.notificationID, builder.build()) + uel.log(Action.CAREPORTAL, Sources.Loop, + ValueWithUnit.StringResource(info.nightscout.androidaps.core.R.string.carbsreq, listOf(ValueWithUnit.Gram(resultAfterConstraints.carbsReq), ValueWithUnit.Minute(resultAfterConstraints.carbsReqWithin)))) rxBus.send(EventNewOpenLoopNotification()) //only send to wear if Native notifications are turned off