Skip to content

Commit

Permalink
fixed typo
Browse files Browse the repository at this point in the history
  • Loading branch information
depuits committed Feb 28, 2018
1 parent 0fa9396 commit 827eaf4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ module.exports = function(pin, type) {

// Is checksum ok?
if ((total & 255) == checksum) {
let res = (type == 11) ? interpretDht11() ? interpretDht22();
let res = (type == 11) ? interpretDht11() : interpretDht22();

dht.emit('result', res);
} else {
Expand Down

0 comments on commit 827eaf4

Please sign in to comment.