mirror of
https://github.com/espressif/esptool.git
synced 2025-10-20 22:09:59 +08:00
fix: assert in esp32 exclusive workaround
This commit is contained in:
@@ -361,6 +361,7 @@ class ESP32ROM(ESPLoader):
|
|||||||
return rom_calculated_freq
|
return rom_calculated_freq
|
||||||
|
|
||||||
def change_baud(self, baud):
|
def change_baud(self, baud):
|
||||||
|
assert self.CHIP_NAME == "ESP32", "This workaround should only apply to ESP32"
|
||||||
# It's a workaround to avoid esp32 CK_8M frequency drift.
|
# It's a workaround to avoid esp32 CK_8M frequency drift.
|
||||||
rom_calculated_freq = self.get_rom_cal_crystal_freq()
|
rom_calculated_freq = self.get_rom_cal_crystal_freq()
|
||||||
valid_freq = 40000000 if rom_calculated_freq > 33000000 else 26000000
|
valid_freq = 40000000 if rom_calculated_freq > 33000000 else 26000000
|
||||||
|
Reference in New Issue
Block a user