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):
172172 if (packet ['timeout' ] or packet ['crc' ]):
173173 return 1
174174
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' )))
176177 verboseprint ('\t Sending \' 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 ('\n phase:\t bootload' )
197+ verboseprint ('\n phase:\t bootload' )
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 \t Upload 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 ()
You can’t perform that action at this time.
0 commit comments