espressif / esptool-js

Javascript implementation of flasher tool for Espressif chips, running in web browser using WebSerial.
https://espressif.github.io/esptool-js/
Apache License 2.0
276 stars 108 forks source link

Fix the C3 connect issue and getting package version #15

Closed adwait-esp closed 2 years ago

adwait-esp commented 2 years ago

Fix the issue for c3 chip connect. The magic value for ESP32C3 eco 1+2 and ESP32C3 eco3 respectively are different and hence revision eco3 was not getting detected, hence unable to connect.

Changed the magic value logic to look into array instead of single value assumption.