@chirimen/ads1015
Advanced tools
Comparing version 1.0.0 to 1.0.1-alpha.0
@@ -17,7 +17,6 @@ (function (global, factory) { | ||
this.i2cPort.open(this.slaveAddress).then((i2cSlave) => { | ||
console.log("ADS1015.init OK"); | ||
this.i2cSlave = i2cSlave; | ||
resolve(); | ||
},(err) => { | ||
console.log("ADS1015.init() Error: "+error.message); | ||
console.error("ADS1015.init() Error: "+error.message); | ||
reject(err); | ||
@@ -31,3 +30,3 @@ }); | ||
if((channel > 3)||(channel < 0)){ | ||
console.log("ADS1015.read: channel error"+channel); | ||
console.error("ADS1015.read: channel error"+channel); | ||
err.code = 5; | ||
@@ -53,3 +52,3 @@ reject(err.message); | ||
},(err) => { | ||
console.log("ADS1015.read: read16(0) error"+err.message); | ||
console.error("ADS1015.read: read16(0) error"+err.message); | ||
err.code = 3; | ||
@@ -60,3 +59,3 @@ reject(err.message); | ||
}, (err) => { | ||
console.log("ADS1015.read: write16(0,config) error"+err.message); | ||
console.error("ADS1015.read: write16(0,config) error"+err.message); | ||
err.code = 2; | ||
@@ -66,3 +65,2 @@ reject(err.message); | ||
}else{ | ||
console.log("i2cSlave is gone....."); | ||
err.code = 1; | ||
@@ -69,0 +67,0 @@ reject(err.message); |
{ | ||
"name": "@chirimen/ads1015", | ||
"version": "1.0.0", | ||
"version": "1.0.1-alpha.0", | ||
"description": "Driver for ADS1015 with WebI2C", | ||
@@ -22,3 +22,3 @@ "main": "ads1015.js", | ||
}, | ||
"gitHead": "38a699cdc76aca1347be918f2e3581825715ea14" | ||
"gitHead": "0df331a064d1eb34860455116210d99dbea00032" | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6145
135
2
1