diff --git a/.travis.yml b/.travis.yml index d30ad360..1ad40c11 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,13 +1,12 @@ sudo: false language: node_js matrix: - allow_failures: - - node_js: 16 + # allow_failures: + # - node_js: 16 include: - node_js: 16 - node_js: 14 - node_js: 12 - - node_js: 10 # - python: 2.7 # language: python # before_script: pip install flake8 diff --git a/hardware/mcp3008/package.json b/hardware/mcp3008/package.json index ed6df3b6..2efdca9e 100644 --- a/hardware/mcp3008/package.json +++ b/hardware/mcp3008/package.json @@ -1,6 +1,6 @@ { "name" : "node-red-node-pi-mcp3008", - "version" : "0.5.0", + "version" : "0.5.1", "description" : "A Node-RED node to read from the MCP3008 Analogue to Digital Converter", "dependencies" : { "mcp-spi-adc": "^3.2.0" diff --git a/hardware/mcp3008/pimcp3008.js b/hardware/mcp3008/pimcp3008.js index ebb0066a..b39c63f1 100644 --- a/hardware/mcp3008/pimcp3008.js +++ b/hardware/mcp3008/pimcp3008.js @@ -29,7 +29,6 @@ module.exports = function(RED) { this.bus = parseInt(n.bus || 0); this.dev = n.dev || "3008"; this.mcp3xxx = []; - var node = this; this.cb = function (err) { if (err) { node.error("Error: "+err); } }; this.opt = { speedHz:20000, deviceNumber:node.dnum, busNumber:node.bus }; var chans = parseInt(this.dev.substr(3)); @@ -40,14 +39,14 @@ module.exports = function(RED) { fs.statSync("/dev/spidev"+node.bus+"."+node.dnum); if (node.mcp3xxx.length === 0) { for (var i=0; i