Skip to content

Commit

Permalink
fix: tests failing because of call to reportOutputMessages
Browse files Browse the repository at this point in the history
  • Loading branch information
sbender9 committed Aug 15, 2024
1 parent d794bb0 commit b244dd9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b244dd9

Please sign in to comment.