esp32tool 1.6.0 → 1.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -135,7 +135,7 @@ December 2025 – Now with full LittleFS, SPIFFS, and FATFS support, plus file a
135
135
 
136
136
  January 2026 – Added Android mobile devices support, standalone CLI.
137
137
 
138
- February 2026 - Added IMPROV support, NEW Feature: Flash Hex Editor.
138
+ February 2026 - Added IMPROV support, NEW Features: Flash Hex Editor and NVS Parser / Editor
139
139
 
140
140
  ---
141
141
 
Binary file
@@ -3595,7 +3595,7 @@ export class ESPLoader extends EventTarget {
3595
3595
  }
3596
3596
  catch (err) {
3597
3597
  if (err instanceof SlipReadError) {
3598
- this.logger.debug(`SLIP read error at ${resp.length} bytes: ${err.message}`);
3598
+ this.logger.debug(`${err.message} at byte 0x${resp.length.toString(16)}`);
3599
3599
  // Send empty SLIP frame to abort the stub's read operation
3600
3600
  // The stub expects 4 bytes (ACK), if we send less it will break out
3601
3601
  try {
@@ -3705,18 +3705,8 @@ export class ESPLoader extends EventTarget {
3705
3705
  // Check if it's a timeout error or SLIP error
3706
3706
  if (err instanceof SlipReadError) {
3707
3707
  if (retryCount <= MAX_RETRIES) {
3708
- this.logger.debug(`${err.message} at 0x${currentAddr.toString(16)}. Draining buffer and retrying (attempt ${retryCount}/${MAX_RETRIES})...`);
3709
- try {
3710
- await this.drainInputBuffer(200);
3711
- // Clear application buffer
3712
- await this.flushSerialBuffers();
3713
- // Wait before retry to let hardware settle
3714
- await sleep(SYNC_TIMEOUT);
3715
- // Continue to retry the same chunk (will send NEW read command)
3716
- }
3717
- catch (drainErr) {
3718
- this.logger.debug(`Buffer drain error: ${drainErr}`);
3719
- }
3708
+ this.logger.debug(`Cleared buffer and retrying (attempt ${retryCount}/${MAX_RETRIES})...`);
3709
+ // Continue to retry the same chunk (will send NEW read command)
3720
3710
  }
3721
3711
  else {
3722
3712
  // All retries exhausted - attempt recovery by reloading stub