File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change 105105 < script src ="js/ble.js?v=b435283f "> </ script >
106106 < script src ="js/mqtt.js?v=199a15fa "> </ script >
107107 < script src ="js/PythonSerial.js?v=bfae6bc5 "> </ script >
108- < script src ="js/serial.js?v=3e7e1e21 "> </ script >
108+ < script src ="js/serial.js?v=31353e71 "> </ script >
109109 < script src ="js/extensions.js?v=0bf6809e "> </ script >
110110
111111 < script src ="js/main.js?v=8c39fb9d "> </ script >
Original file line number Diff line number Diff line change @@ -302,6 +302,7 @@ var serial = new function() {
302302 self . writeEnable = false ;
303303 if ( await self . pythonSerial . enterRawMode ( ) != 'success' ) {
304304 await self . pythonSerial . exitRawMode ( 500 ) ;
305+ self . pythonSerial . setReadToHandler ( ) ;
305306 $downloadWindow . $body . text ( 'Connection timed out. Press the reset button on your device and try again.' ) ;
306307 $downloadWindow . $buttonsRow . removeClass ( 'hide' ) ;
307308 return ;
@@ -317,6 +318,8 @@ var serial = new function() {
317318 let fileBuf = e . encode ( filesManager . files [ filename ] ) ;
318319 let result = await self . pythonSerial . copyFileToDevice ( filename , fileBuf ) ;
319320 if ( result != 'success' ) {
321+ await self . pythonSerial . exitRawMode ( ) ;
322+ self . pythonSerial . setReadToHandler ( ) ;
320323 $downloadWindow . $body . text ( 'Error downloading files' ) ;
321324 $downloadWindow . $buttonsRow . removeClass ( 'hide' ) ;
322325 return ;
You can’t perform that action at this time.
0 commit comments