Skip to content

Commit 61846df

Browse files
committed
Windows test to cause discounnect
Try it
1 parent 9c65fcf commit 61846df

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,12 +524,12 @@ 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-
this.WRITEBLE.writeValue(this.str2ab(str)); //don't wait since the Windows timeout is long
527+
await this.WRITEBLE.writeValueWithResponse(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
531531
}
532-
532+
this.BLE_DEVICE.gatt.disconnect();
533533
}
534534

535535
async softReset(){

0 commit comments

Comments
 (0)