Skip to content

Commit

Permalink
Fix the callback issue in RogerHardiman#1
Browse files Browse the repository at this point in the history
  • Loading branch information
vale981 authored Dec 19, 2020
1 parent bcfc60b commit 7f4e58e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion keyboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ function read_and_process_keyboard() {
else if (ch && ch=='s') {tenx.stop();}

// Set a timer to trigger an automatic stop if required
if (s==1) stop_timer = setTimeout(tenx.stop(), STOP_DELAY_MS);
if (s==1) stop_timer = setTimeout(function() { tenx.stop() }, STOP_DELAY_MS);

});
}
Expand Down

0 comments on commit 7f4e58e

Please sign in to comment.