python3 compatibility
This commit is contained in:
parent
fdf48c0f1a
commit
5fea623f7d
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in New Issue