Skip to content

Commit

Permalink
Merge pull request #178 from memetolsen/patch-1
Browse files Browse the repository at this point in the history
Corrected clearInterval in sensor.js
  • Loading branch information
Dexter Industries committed Dec 16, 2015
2 parents fa47213 + f79ac77 commit 82ba112
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Software/NodeJS/libs/sensors/base/sensor.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ Sensor.prototype.watch = function(delay) {
}, delay)
}
Sensor.prototype.stopWatch = function() {
if (typeof watchInterval != 'undefined' && typeof watchInterval.clearInterval == 'function')
watchInterval.clearInterval()
if (typeof watchInterval != 'undefined' && typeof clearInterval == 'function')
clearInterval(watchInterval)
}

module.exports = Sensor
module.exports = Sensor

0 comments on commit 82ba112

Please sign in to comment.