Skip to content

Commit

Permalink
keep this bound to board for ready event callback
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanjgill authored and rwaldron committed Aug 21, 2019
1 parent 1af10e9 commit fd0e778
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/led-demo-sequence.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ function execute(step) {
});
}

board.on("ready", () => {
board.on("ready", function () {
// Defaults to pin 11 (must be PWM)
led = new Led(process.argv[2] || 11);

Expand Down
2 changes: 1 addition & 1 deletion eg/led-demo-sequence.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ function execute(step) {
});
}

board.on("ready", () => {
board.on("ready", function () {
// Defaults to pin 11 (must be PWM)
led = new Led(process.argv[2] || 11);

Expand Down

0 comments on commit fd0e778

Please sign in to comment.