Skip to content

Commit

Permalink
turn down drain delay to average amount for now
Browse files Browse the repository at this point in the history
  • Loading branch information
noopkat committed Aug 9, 2015
1 parent 59d6e9f commit a1d4680
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/serialport-comms.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ serialCom.prototype.close = function() {
serialCom.prototype.write = function(data, callback) {
var self = this;
// this will need to swap between 200 and 1000 depending on the command
var drainDelay = 800;
var drainDelay = 400;

this.device.write(data, function(error, results) {
if (error) { return callback(new Error(error)); }
Expand Down
2 changes: 1 addition & 1 deletion tests/avrgirl-stk500v2.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ var FLoptions = {
comm: usbmock,
debug: false,
frameless: true
}
};

function testBuffer(spy, call, arg, buffer) {
return (spy.called && spy.args[call][arg] && bufferEqual(spy.args[call][arg], buffer));
Expand Down

0 comments on commit a1d4680

Please sign in to comment.