We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 82fef86 commit d98379cCopy full SHA for d98379c
1 file changed
js/repl.js
@@ -445,6 +445,8 @@ class ReplJS{
445
if(this.DEBUG_CONSOLE_ON) console.log("Trying ble auto reconnect...");
446
const server = await this.connectWithTimeout(this.BLE_DEVICE, 10000); //wait for 10seconds to see if it reconnects
447
//const server = await this.BLE_DEVICE.gatt.connect();
448
+ await new Promise(r => setTimeout(r, 300));
449
+
450
let attempts = 5;
451
for (let i = 0; i < attempts; i++) {
452
try {
0 commit comments