Skip to content

Commit 3918090

Browse files
committed
Improve verbose print support
1 parent 30f7e96 commit 3918090

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

tools/artemis/artemis_svl.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -160,11 +160,11 @@ def phase_setup(ser):
160160

161161
baud_detect_byte = b'U'
162162

163-
print('\nphase:\tsetup')
163+
verboseprint('\nphase:\tsetup')
164164

165165
# Handle the serial startup blip
166166
ser.reset_input_buffer()
167-
print('\tcleared startup blip')
167+
verboseprint('\tcleared startup blip')
168168

169169
ser.write(baud_detect_byte) # send the baud detection character
170170

@@ -173,7 +173,7 @@ def phase_setup(ser):
173173
return 1
174174

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

178178
send_packet(ser, SVL_CMD_BL, b'')
179179

@@ -235,9 +235,6 @@ def phase_bootload(ser):
235235

236236
print('\n\tUpload complete')
237237

238-
exit()
239-
240-
241238

242239

243240

0 commit comments

Comments
 (0)