From a8ad91861c360cd6c12357587de24430ce079b52 Mon Sep 17 00:00:00 2001 From: Teppo Kurki Date: Mon, 4 Mar 2024 21:57:45 +0200 Subject: [PATCH] fix: call setProviderXX methods Canbus connections are handled as providers in the server, because here we were calling setPluginXX methods instead of setProviderXX. --- lib/canbus.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/canbus.js b/lib/canbus.js index 8fbfdea..6ca8a4d 100644 --- a/lib/canbus.js +++ b/lib/canbus.js @@ -54,14 +54,16 @@ function CanbusStream (options) { this.options = options this.start() + console.trace() + console.log(options.app.ssetProviderStatus) this.setProviderStatus = options.app && options.app.setProviderStatus ? (msg) => { - options.app.setPluginStatus(options.providerId, msg) + options.app.setProviderStatus(options.providerId, msg) } : () => {} this.setProviderError = options.app && options.app.setProviderError ? (msg) => { - options.app.setPluginError(options.providerId, msg) + options.app.setProviderError(options.providerId, msg) } : () => {}