Skip to content

Commit 1c038b3

Browse files
committed
Try WithoutResponse on windows
1 parent 83ef048 commit 1c038b3

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

js/repl.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,13 @@ class ReplJS{
523523

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){
526-
await this.WRITEBLE.writeValue(this.str2ab(str));
526+
try{
527+
await this.WRITEBLE.writeValueWithoutResponse(this.str2ab(str));
528+
} catch(error){
529+
console.error('ble stop write failed:', error);
530+
//do nothing we expected an error
531+
}
532+
527533
}
528534

529535
async softReset(){

0 commit comments

Comments
 (0)