From d794bb0fe0642467b268243c8129172de0fefdef Mon Sep 17 00:00:00 2001 From: Scott Bender Date: Thu, 15 Aug 2024 13:01:34 -0400 Subject: [PATCH 1/2] feature: report output messages for the dashboard --- index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/index.js b/index.js index b822c8e..dcb5b41 100644 --- a/index.js +++ b/index.js @@ -59,6 +59,7 @@ module.exports = function (app) { plugin.unsubscribes.push( stream .onValue(nmeaString => { + app.reportOutputMessages(1) app.emit('nmea0183out', nmeaString) if (sentenceEvent) { app.emit(sentenceEvent, nmeaString) From b244dd98d586ec5ea7ab7d2d01e818cae1148107 Mon Sep 17 00:00:00 2001 From: Scott Bender Date: Thu, 15 Aug 2024 13:03:00 -0400 Subject: [PATCH 2/2] fix: tests failing because of call to reportOutputMessages --- index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index dcb5b41..20b0956 100644 --- a/index.js +++ b/index.js @@ -59,7 +59,9 @@ module.exports = function (app) { plugin.unsubscribes.push( stream .onValue(nmeaString => { - app.reportOutputMessages(1) + if ( app.reportOutputMessages ) { + app.reportOutputMessages(1) + } app.emit('nmea0183out', nmeaString) if (sentenceEvent) { app.emit(sentenceEvent, nmeaString)