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

Commit 2f089ab

Browse files
committed
[gpio] Fix bugs in GPIO sample code
Signed-off-by: Geoff Gustafson <[email protected]>
1 parent 89db4e8 commit 2f089ab

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
@@ -104,13 +104,13 @@ try {
104104
gpio6 = gpio.open({pin: 6, edge: "any"});
105105
gpio6.on("data", function(value) {
106106
console.log("GPIO pin 6 has changed; value: " + value);
107-
};
107+
});
108108
setTimeout(function(){
109109
gpio6.close();
110110
}, 2000);
111111

112112
} catch (err) {
113-
console.log("GPIO error: " + error.message);
113+
console.log("GPIO error: " + err.message);
114114
};
115115
```
116116

0 commit comments

Comments
 (0)