Skip to content

Commit 9ecbc26

Browse files
authored
Update SHT3.js
1 parent 3a5b652 commit 9ecbc26

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

SHT3.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
var C = {
66
ADDR: 0x40,
7-
POLYNOMIAL: 0x131
7+
POLYNOMIAL: 0x31
88
};
99

1010
exports.connect = function (_i2c,_addr) {
@@ -30,7 +30,7 @@ SHT2x.prototype.checkCrc = function(bytes, bytesLen, checksum) {
3030
};
3131

3232
SHT2x.prototype.readTemperature = function() {
33-
print("v1");
33+
print("v2");
3434
print(this.addr);
3535
this.i2c.writeTo(this.addr, [0x2c, 0x06]);
3636
var result = this.i2c.readFrom(this.addr, 3);

0 commit comments

Comments
 (0)