Skip to content

Commit

Permalink
flash pixhawk without reboot
Browse files Browse the repository at this point in the history
  • Loading branch information
ethliup committed Nov 16, 2015
1 parent 4c1586b commit 9cb76e1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions soloutils/flash.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,12 +230,12 @@ def flash_px4(firmware_file):
scp.close()

# shutdown solo for firmware reflash
code = soloutils.command_stream(client, 'shutdown -r now')
#code = soloutils.command_stream(client, 'loadPixhawk.py')
errprinter('Solo will update once it reboots!')

dt = datetime.today() + timedelta(minutes=4)
errprinter('please wait up to four minutes longer for the installation to complete (by {}).'.format(dt.strftime('%-I:%M')))
#code = soloutils.command_stream(client, 'shutdown -r now')
code = soloutils.command_stream(client, 'loadPixhawk.py')
#errprinter('Solo will update once it reboots!')
errprinter('Pixhawk has been updated to new firmware')
#dt = datetime.today() + timedelta(minutes=4)
#errprinter('please wait up to four minutes longer for the installation to complete (by {}).'.format(dt.strftime('%-I:%M')))

# Complete!
client.close()
Expand Down

0 comments on commit 9cb76e1

Please sign in to comment.