Skip to content

Commit 3955a3d

Browse files
committed
verbosity
1 parent 6e00bd5 commit 3955a3d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

esp32_firmware_reader.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,13 @@ def read_partition_table(fh, verbose=False):
3838
if(magic == b'\xff\xff'):
3939
data = magic + fh.read(30)
4040
if data == b'\xff'*32:
41-
print("Done")
41+
print_verbose(verbose,"Done")
4242
return partition_table
4343
# md5sum
4444
elif(magic == b'\xeb\xeb'):
4545
data = magic + fh.read(30)
46-
print("MD5sum: ")
47-
print(data[16:].hex())
46+
print_verbose(verbose,"MD5sum: ")
47+
print_verbose(verbose,data[16:].hex())
4848
continue
4949
# is partition?
5050
elif(magic[0] != 0xAA or magic[1] != 0x50):

0 commit comments

Comments
 (0)