Skip to content

Commit a6bfbda

Browse files
committed
Fix: add . after message to be consistent with Arduino IDE's output
1 parent e7ab45f commit a6bfbda

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tools/xmc-flasher.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ def check_device(device, port):
168168
device_value_masked = f'{device_value_masked:x}'
169169
device_value_masked = device_value_masked.zfill(int(master_data[device]['IDCHIP']['size'])*2)
170170

171-
print(f"Device is: {device.split('-')[0]}")
171+
print(f"Device is: {device.split('-')[0]}.")
172172

173173
#compare with stored master data
174174
if not device_value_masked == master_data[device]['IDCHIP']['value']:
@@ -186,7 +186,7 @@ def check_mem(device, port):
186186
flash_size = (device_value-1)*4 #flash size given by (ADDR-1)*4
187187
flash_size = str(flash_size).zfill(4)
188188

189-
print(f"Flash size is: {int(flash_size)}kB")
189+
print(f"Flash size is: {int(flash_size)}kB.")
190190

191191
# special case for XMC2GO-32kB variant, bypass check
192192
if "XMC1100" in device and int(flash_size) == 32:
@@ -253,10 +253,10 @@ def parser_upload_func(args):
253253
if "J-Link>loadbin" in line:
254254
found_loadbin = True
255255
elif found_loadbin and "O.K." in line:
256-
print("Upload successful")
256+
print("Upload successful.")
257257
break
258258
else:
259-
print("Upload failed")
259+
print("Upload failed.")
260260
remove_console_output_file(console_out)
261261

262262
def parser_erase_func(args):

0 commit comments

Comments
 (0)