Skip to content

Commit

Permalink
update compare
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason2866 committed Nov 5, 2023
1 parent 0421de5 commit 1834ff1
Showing 1 changed file with 6 additions and 16 deletions.
22 changes: 6 additions & 16 deletions flasher_stub/compare_stubs.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,10 @@ def verbose_diff(new, old):
old_8266_stub = esptool.ESP8266ROM.STUB_CODE
old_32_stub = esptool.ESP32ROM.STUB_CODE
old_32s2_stub = esptool.ESP32S2ROM.STUB_CODE
old_32s3_beta2_stub = esptool.ESP32S3BETA2ROM.STUB_CODE
old_32s3_stub = esptool.ESP32S3ROM.STUB_CODE
old_32c3_stub = esptool.ESP32C3ROM.STUB_CODE
old_32c6_beta_stub = esptool.ESP32C6BETAROM.STUB_CODE
old_32h2_beta1_stub = esptool.ESP32H2BETA1ROM.STUB_CODE
old_32h2_beta2_stub = esptool.ESP32H2BETA2ROM.STUB_CODE
old_32c6_stub = esptool.ESP32C6ROM.STUB_CODE
old_32h2_stub = esptool.ESP32H2ROM.STUB_CODE
old_32c2_stub = esptool.ESP32C2ROM.STUB_CODE

# hackiness: importing this module updates the loaded esptool module with the new stubs
Expand All @@ -56,10 +54,6 @@ def verbose_diff(new, old):
print("ESP32S2 stub code in esptool.py is different to just-built stub.")
verbose_diff(esptool.ESP32S2ROM.STUB_CODE, old_32s2_stub)
same = False
if esptool.ESP32S3BETA2ROM.STUB_CODE != old_32s3_beta2_stub:
print("ESP32S3 stub code in esptool.py is different to just-built stub.")
verbose_diff(esptool.ESP32S3BETA2ROM.STUB_CODE, old_32s3_beta2_stub)
same = False
if esptool.ESP32S3ROM.STUB_CODE != old_32s3_stub:
print("ESP32S3 stub code in esptool.py is different to just-built stub.")
verbose_diff(esptool.ESP32S3ROM.STUB_CODE, old_32s3_stub)
Expand All @@ -68,17 +62,13 @@ def verbose_diff(new, old):
print("ESP32C3 stub code in esptool.py is different to just-built stub.")
verbose_diff(esptool.ESP32C3ROM.STUB_CODE, old_32c3_stub)
same = False
if esptool.ESP32C6BETAROM.STUB_CODE != old_32c6_beta_stub:
if esptool.ESP32C6ROM.STUB_CODE != old_32c6_stub:
print("ESP32C6 stub code in esptool.py is different to just-built stub.")
verbose_diff(esptool.ESP32C6BETAROM.STUB_CODE, old_32c6_beta_stub)
verbose_diff(esptool.ESP32C6ROM.STUB_CODE, old_32c6_stub)
same = False
if esptool.ESP32H2BETA1ROM.STUB_CODE != old_32h2_beta1_stub:
if esptool.ESP32H2ROM.STUB_CODE != old_32h2_stub:
print("ESP32H2BETA1 stub code in esptool.py is different to just-built stub.")
verbose_diff(esptool.ESP32H2BETA1ROM.STUB_CODE, old_32h2_beta1_stub)
same = False
if esptool.ESP32H2BETA2ROM.STUB_CODE != old_32h2_beta2_stub:
print("ESP32H2BETA2 stub code in esptool.py is different to just-built stub.")
verbose_diff(esptool.ESP32H2BETA2ROM.STUB_CODE, old_32h2_beta2_stub)
verbose_diff(esptool.ESP32H2ROM.STUB_CODE, old_32h2_stub)
same = False
if esptool.ESP32C2ROM.STUB_CODE != old_32c2_stub:
print("ESP32C2 stub code in esptool.py is different to just-built stub.")
Expand Down

0 comments on commit 1834ff1

Please sign in to comment.