Skip to content

Commit 19268a4

Browse files
committed
Improve verboseprint support in artemis_svl.py
1 parent d28f9eb commit 19268a4

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tools/artemis/artemis_svl.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ def phase_bootload(ser):
193193

194194
frame_size = 512*4
195195

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

198198
with open(args.binfile, mode='rb') as binfile:
199199
application = binfile.read()
@@ -202,7 +202,7 @@ def phase_bootload(ser):
202202
total_frames = math.ceil(total_len/frame_size)
203203
curr_frame = 0
204204

205-
verboseprint('\tLength to send: ' + str(total_len) + ' bytes, ' + str(total_frames) + ' frames')
205+
verboseprint('\thave ' + str(total_len) + ' bytes to send in ' + str(total_frames) + ' frames')
206206

207207
bl_done = False
208208
while(not bl_done):
@@ -233,7 +233,8 @@ def phase_bootload(ser):
233233
send_packet(ser, SVL_CMD_DONE, b'')
234234
bl_done = True
235235

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

238239

239240

0 commit comments

Comments
 (0)