Skip to content

Commit

Permalink
image_info: Display disabled WP pin as disabled
Browse files Browse the repository at this point in the history
The image formats know about the special value 0xee used to disable WP.
Display this with image_info.

E.g.:

ESP32-C3 extended image header
==============================
WP pin: disabled
  • Loading branch information
xyzzy42 committed Apr 20, 2023
1 parent 8f8f508 commit de2fa6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion esptool/cmds.py
Original file line number Diff line number Diff line change
Expand Up @@ -737,7 +737,7 @@ def get_key_from_value(dict, val):
title = "{} extended image header".format(args.chip.upper())
print(title)
print("=" * len(title))
print("WP pin: {:#02x}".format(image.wp_pin))
print("WP pin:", "disabled" if image.wp_pin == image.WP_PIN_DISABLED else f"{image.wp_pin:#02x}")
print(
"Flash pins drive settings: "
"clk_drv: {:#02x}, q_drv: {:#02x}, d_drv: {:#02x}, "
Expand Down

0 comments on commit de2fa6b

Please sign in to comment.