-
Notifications
You must be signed in to change notification settings - Fork 151
Open
Description
Chrome 143 on MacOS and Windows appears to break ESPTool-js when trying to connect to an ESP32-S2.
I was able to solve it by placing a 100ms delay between lines 436 and 437:
Lines 420 to 439 in 84ff8a9
| /** | |
| * Write a serial command to the chip | |
| * @param {number} op - Operation number | |
| * @param {Uint8Array} data - Unsigned 8 bit array | |
| * @param {number} chk - channel number | |
| * @param {boolean} waitResponse - wait for response ? | |
| * @param {number} timeout - timeout number in milliseconds | |
| * @returns {Promise<[number, Uint8Array]>} Return a number and a 8 bit unsigned integer array. | |
| */ | |
| async command( | |
| op: number | null = null, | |
| data: Uint8Array = new Uint8Array(0), | |
| chk = 0, | |
| waitResponse = true, | |
| timeout = this.DEFAULT_TIMEOUT, | |
| ): Promise<[number, Uint8Array]> { | |
| if (op != null) { | |
| if (this.transport.tracing) { | |
| this.transport.trace( | |
| `command op:0x${op.toString(16).padStart(2, "0")} data len=${data.length} wait_response=${ |
Metadata
Metadata
Assignees
Labels
No labels