From 9cb76e147d76cfed597d2d260beed303877b8020 Mon Sep 17 00:00:00 2001 From: Peidong Liu Date: Mon, 16 Nov 2015 12:57:47 +0100 Subject: [PATCH] flash pixhawk without reboot --- soloutils/flash.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/soloutils/flash.py b/soloutils/flash.py index 99a2bd1..bf3cadd 100644 --- a/soloutils/flash.py +++ b/soloutils/flash.py @@ -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()