Skip to content

Commit d98379c

Browse files
committed
Another delay test
1 parent 82fef86 commit d98379c

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

js/repl.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -445,6 +445,8 @@ class ReplJS{
445445
if(this.DEBUG_CONSOLE_ON) console.log("Trying ble auto reconnect...");
446446
const server = await this.connectWithTimeout(this.BLE_DEVICE, 10000); //wait for 10seconds to see if it reconnects
447447
//const server = await this.BLE_DEVICE.gatt.connect();
448+
await new Promise(r => setTimeout(r, 300));
449+
448450
let attempts = 5;
449451
for (let i = 0; i < attempts; i++) {
450452
try {

0 commit comments

Comments
 (0)