-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
…echanism
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -104,6 +104,10 @@ var Serial = { | |
// If no ports are detected... | ||
if (!length) { | ||
|
||
if (IS_TEST_MODE && this.abort) { | ||
return; | ||
} | ||
|
||
// Create an attempt counter | ||
if (!Serial.attempts[Serial.used.length]) { | ||
Serial.attempts[Serial.used.length] = 0; | ||
|
@@ -484,7 +488,6 @@ util.inherits(Board, Emitter); | |
}; | ||
}); | ||
|
||
|
||
Board.prototype.serialize = function(filter) { | ||
var blacklist = this.serialize.blacklist; | ||
var special = this.serialize.special; | ||
|
@@ -1137,6 +1140,9 @@ if (IS_TEST_MODE) { | |
|
||
Board.purge = function() { | ||
Board.Pins.normalize.clear(); | ||
Repl.isActive = false; | ||
Repl.isBlocked = true; | ||
Repl.ref = null; | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
dtex
Collaborator
|
||
boards.length = 0; | ||
}; | ||
} | ||
|
@dtex This was the silver bullet.