SmsCommunicatorPlugin.processCARBS: set source on record.

This commit is contained in:
Johannes Mockenhaupt 2020-03-22 11:54:31 +01:00
parent 82ffe0f9ac
commit 843fccb86c
No known key found for this signature in database
GPG key ID: 9E1EA6AF7BBBB0D1

View file

@ -713,6 +713,7 @@ object SmsCommunicatorPlugin : PluginBase(PluginDescription()
override fun run() {
val detailedBolusInfo = DetailedBolusInfo()
detailedBolusInfo.carbs = anInteger().toDouble()
detailedBolusInfo.source = Source.USER
detailedBolusInfo.date = secondLong()
ConfigBuilderPlugin.getPlugin().commandQueue.bolus(detailedBolusInfo, object : Callback() {
override fun run() {