diff --git a/omnipod-dash/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/dash/OmnipodDashPumpPlugin.kt b/omnipod-dash/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/dash/OmnipodDashPumpPlugin.kt index bf9c3389ec..1b2a43af32 100644 --- a/omnipod-dash/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/dash/OmnipodDashPumpPlugin.kt +++ b/omnipod-dash/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/dash/OmnipodDashPumpPlugin.kt @@ -468,12 +468,12 @@ class OmnipodDashPumpPlugin @Inject constructor( } private fun executeProgrammingCommand( - historyEntry: Single, + historyId: Single, command: Observable ): PumpEnactResult { return Single.create { source -> Observable.concat( - historyEntry.flatMapObservable { recordId -> + historyId.flatMapObservable { recordId -> podStateManager.createActiveCommand(recordId).toObservable() }, command,