Skip to content

Commit 9c65fcf

Browse files
committed
Don't wait for response on STOP
When doing a STOPs and it is BLE then don't wait for the response as the WIndows timeout is long
1 parent 1c038b3 commit 9c65fcf

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

js/repl.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,7 @@ class ReplJS{
524524
//This is writing to cause the XRP to reboot, so we don't expect a response from the BLE. So, we will not ask for one.
525525
async writeSTOPtoBleDevice(str){
526526
try{
527-
await this.WRITEBLE.writeValueWithoutResponse(this.str2ab(str));
527+
this.WRITEBLE.writeValue(this.str2ab(str)); //don't wait since the Windows timeout is long
528528
} catch(error){
529529
console.error('ble stop write failed:', error);
530530
//do nothing we expected an error
@@ -1910,7 +1910,7 @@ class ReplJS{
19101910
this.STOP = true; //let the executeLines code know when it stops, it stopped because the STOP button was pushed
19111911
this.SPECIAL_FORCE_OUTPUT_FLAG = false; //turn off showing output so they don't see the keyboardInterrupt and stack trace.
19121912
if(this.BLE_DEVICE != undefined){
1913-
await this.writeToDevice(this.BLE_STOP_MSG);
1913+
await this.writeSTOPtoBleDevice(this.BLE_STOP_MSG);
19141914
return;
19151915
}
19161916

0 commit comments

Comments
 (0)