Skip to content
This repository was archived by the owner on Aug 5, 2022. It is now read-only.

Commit 5a53e3c

Browse files
committed
Merge branch 'master' of github.com:zolkis/iot-js-api
2 parents 703b877 + 2c1f200 commit 5a53e3c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

board/gpio.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -125,13 +125,13 @@ try {
125125
gpio6 = gpio.open({ pin: 6, edge: "any"});
126126
gpio6.on("data", function(value) {
127127
console.log("GPIO pin 6 has changed; value: " + value);
128-
};
128+
});
129129
setTimeout(function(){
130130
gpio6.close();
131131
}, 2000);
132132

133133
} catch (err) {
134-
console.log("GPIO error: " + error.message);
134+
console.log("GPIO error: " + err.message);
135135
};
136136
```
137137

0 commit comments

Comments
 (0)