Skip to content

Commit a3599f3

Browse files
author
Nathan Seidle
committed
Move debug statements to verbose print
1 parent 3918090 commit a3599f3

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

tools/artemis/artemis_svl.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,8 @@ def phase_setup(ser):
172172
if(packet['timeout'] or packet['crc']):
173173
return 1
174174

175-
print('\tGot SVL Bootloader Version: '+str(int.from_bytes(packet['data'],'big')))
175+
verboseprint('\tGot SVL Bootloader Version: ' +
176+
str(int.from_bytes(packet['data'], 'big')))
176177
verboseprint('\tSending \'enter bootloader\' command')
177178

178179
send_packet(ser, SVL_CMD_BL, b'')
@@ -193,7 +194,7 @@ def phase_bootload(ser):
193194

194195
frame_size = 512*4
195196

196-
print('\nphase:\tbootload')
197+
verboseprint('\nphase:\tbootload')
197198

198199
with open(args.binfile, mode='rb') as binfile:
199200
application = binfile.read()
@@ -233,7 +234,7 @@ def phase_bootload(ser):
233234
send_packet(ser, SVL_CMD_DONE, b'')
234235
bl_done = True
235236

236-
print('\n\tUpload complete')
237+
print('Upload complete')
237238

238239

239240

@@ -338,4 +339,4 @@ def verboseprint(*args):
338339
else:
339340
verboseprint = lambda *a: None # do-nothing function
340341

341-
main()
342+
main()

0 commit comments

Comments
 (0)