File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -172,7 +172,8 @@ def phase_setup(ser):
172
172
if (packet ['timeout' ] or packet ['crc' ]):
173
173
return 1
174
174
175
- print ('\t Got SVL Bootloader Version: ' + str (int .from_bytes (packet ['data' ],'big' )))
175
+ verboseprint ('\t Got SVL Bootloader Version: ' +
176
+ str (int .from_bytes (packet ['data' ], 'big' )))
176
177
verboseprint ('\t Sending \' enter bootloader\' command' )
177
178
178
179
send_packet (ser , SVL_CMD_BL , b'' )
@@ -193,7 +194,7 @@ def phase_bootload(ser):
193
194
194
195
frame_size = 512 * 4
195
196
196
- print ('\n phase:\t bootload' )
197
+ verboseprint ('\n phase:\t bootload' )
197
198
198
199
with open (args .binfile , mode = 'rb' ) as binfile :
199
200
application = binfile .read ()
@@ -233,7 +234,7 @@ def phase_bootload(ser):
233
234
send_packet (ser , SVL_CMD_DONE , b'' )
234
235
bl_done = True
235
236
236
- print ('\n \t Upload complete' )
237
+ print ('Upload complete' )
237
238
238
239
239
240
@@ -338,4 +339,4 @@ def verboseprint(*args):
338
339
else :
339
340
verboseprint = lambda * a : None # do-nothing function
340
341
341
- main ()
342
+ main ()
You can’t perform that action at this time.
0 commit comments