Skip to content

Commit

Permalink
Merge pull request #317 from parallaxinc/tx-flash
Browse files Browse the repository at this point in the history
Fix TX flash on transmit text
  • Loading branch information
phated committed Oct 30, 2015
2 parents 9e36ded + 5d09ba5 commit 3ddf66c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/plugins/handlers.js
Original file line number Diff line number Diff line change
Expand Up @@ -520,6 +520,10 @@ function handlers(app, opts, done){
txOn();
}

function onTransmit(){
txOn();
}

function toggleEcho(){
const { device } = store.getState();
const { echo } = consoleStore.getState();
Expand Down Expand Up @@ -548,6 +552,7 @@ function handlers(app, opts, done){
const board = app.getBoard(selected);

// safety remove attempt for progress
board.removeListener('transmit', onTransmit);
board.removeListener('progress', onProgress);
board.removeListener('terminal', onTerminal);
board.removeListener('close', onClose);
Expand All @@ -559,6 +564,7 @@ function handlers(app, opts, done){
clearTerminal();
board.on('terminal', onTerminal);
board.on('close', onClose);
board.on('transmit', onTransmit);
toast.clear();

toast.show(`'${filename}' downloaded successfully`, successToastOpts);
Expand Down

0 comments on commit 3ddf66c

Please sign in to comment.