python3 compatibility

This commit is contained in:
Hansi, dl9rdz 2023-04-13 15:15:32 +00:00
parent fdf48c0f1a
commit 5fea623f7d
1 changed files with 4 additions and 4 deletions

View File

@ -13,7 +13,7 @@ import subprocess
#spiffs, data, spiffs, 0x290000,0x170000,
MKSPIFFS = os.environ['MKSPIFFS']
print "mkspiffs is "+MKSPIFFS
print("mkspiffs is "+MKSPIFFS)
OFFSET_BOOTLOADER = 0x1000
OFFSET_PARTITIONS = 0x8000
@ -44,9 +44,9 @@ with open(partition, 'rb') as csvfile:
OFFSET_SPIFFS = int(row[3],16)
SIZE_SPIFFS = int(row[4],16)
print "bootapp0: "+hex(OFFSET_BOOTAPP0)
print "app0: "+hex(OFFSET_APPLICATION)
print "spiffs: "+hex(OFFSET_SPIFFS)+" size "+hex(SIZE_SPIFFS)
print("bootapp0: "+hex(OFFSET_BOOTAPP0))
print("app0: "+hex(OFFSET_APPLICATION))
print("spiffs: "+hex(OFFSET_SPIFFS)+" size "+hex(SIZE_SPIFFS))
# create binary partition
file_part = "/tmp/partition.bin"