Skip to content

Commit

Permalink
style: prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
tkurki committed Jul 18, 2023
1 parent e48c5f8 commit 9cdff39
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions packages/streams/gpsd.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ function Gpsd(options) {
const hostname = options.hostname || options.host || 'localhost'
const noDataReceivedTimeout = options.noDataReceivedTimeout || 0


function setProviderStatus(msg) {
options.app.setProviderStatus(options.providerId, msg)
}
Expand All @@ -64,17 +63,17 @@ function Gpsd(options) {
},
parse: false,
reconnectThreshold: noDataReceivedTimeout,
reconnectInterval: noDataReceivedTimeout / 2
reconnectInterval: noDataReceivedTimeout / 2,
})

setProviderStatus(`Connecting to ${hostname}:${port}`)

this.listener.on('connected', () => {
this.listener.on('connected', () => {
setProviderStatus(`Connected to ${hostname}:${port}`)
this.listener.watch({
class : "WATCH",
class: 'WATCH',
nmea: true,
json: false
json: false,
})
})

Expand All @@ -83,7 +82,7 @@ function Gpsd(options) {
self.push(data)
})

this.listener.connect();
this.listener.connect()
}

require('util').inherits(Gpsd, Transform)
Expand Down

0 comments on commit 9cdff39

Please sign in to comment.