Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a0a645e commit 8141736Copy full SHA for 8141736
examples/base-line-follower.js
@@ -47,7 +47,7 @@ board.on("ready", function () {
47
console.log("Press the spacebar to end calibration and start running...");
48
49
stdin.on("keypress", function(chunk, key) {
50
- if (key && key.name !== 'space') return;
+ if (!key || key.name !== 'space') return;
51
52
calibrating = false;
53
running = !running;
0 commit comments