Skip to content
Browse files

Fix: don't load 'commands' unless entering repl mode

  • Loading branch information...
1 parent 0ea0679 commit 035fcbb805a853da0a07fea969c227f6cfcc2927 @tmpvar committed Aug 10, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 bin/tpad
View
4 bin/tpad
@@ -36,7 +36,7 @@ var currentRepl = repl.start(), currentSerialPort;
currentRepl.context.color = color;
-require('../command')(currentRepl);
+
var spinner = "|/-\\", spinnerPos = 0, spinnerTimer;
serial.on('searching', function() {
@@ -63,6 +63,8 @@ serial.on('connected', function() {
// Normal repl mode
if (!command) {
+ require('../command')(currentRepl);
+
serial.on('connected', function(config) {
clearInterval(spinnerTimer);

0 comments on commit 035fcbb

Please sign in to comment.
Something went wrong with that request. Please try again.