Skip to content

Commit 3ddf66c

Browse files
committed
Merge pull request #317 from parallaxinc/tx-flash
Fix TX flash on transmit text
2 parents 9e36ded + 5d09ba5 commit 3ddf66c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/plugins/handlers.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -520,6 +520,10 @@ function handlers(app, opts, done){
520520
txOn();
521521
}
522522

523+
function onTransmit(){
524+
txOn();
525+
}
526+
523527
function toggleEcho(){
524528
const { device } = store.getState();
525529
const { echo } = consoleStore.getState();
@@ -548,6 +552,7 @@ function handlers(app, opts, done){
548552
const board = app.getBoard(selected);
549553

550554
// safety remove attempt for progress
555+
board.removeListener('transmit', onTransmit);
551556
board.removeListener('progress', onProgress);
552557
board.removeListener('terminal', onTerminal);
553558
board.removeListener('close', onClose);
@@ -559,6 +564,7 @@ function handlers(app, opts, done){
559564
clearTerminal();
560565
board.on('terminal', onTerminal);
561566
board.on('close', onClose);
567+
board.on('transmit', onTransmit);
562568
toast.clear();
563569

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

0 commit comments

Comments
 (0)