Liu Song’s Projects


~/Projects/esptool-js

git clone https://code.lsong.org/esptool-js

Commit

Commit
d1524e51bd6e66611f039f4cb65bdf9aee22c8da
Author
Paulus Schoutsen <[email protected]>
Date
2023-01-19 10:37:35 -0500 -0500
Diffstat
 src/esploader.ts | 3 ++-

Only change baudrate if it's different between ROM and STUB


diff --git a/src/esploader.ts b/src/esploader.ts
index 06a7d17c8cb950d027de7290539c8fcda25fcd5b..c051c68a2a1dd130f1099a2b11d949839c267462 100644
--- a/src/esploader.ts
+++ b/src/esploader.ts
@@ -788,7 +788,8 @@     }
 
     await this.run_stub();
 
-
+    if (this.rom_baudrate !== this.baudrate) {
+      await this.change_baud();
     }
     return chip;
   }