From fed06955bc11eecf2f81ec845b25d6768d1a8df2 Mon Sep 17 00:00:00 2001 From: ritul jasuja Date: Tue, 16 Jan 2018 11:48:19 +0530 Subject: [PATCH] Update debug message as per connection link --- Tools/px_uploader.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Tools/px_uploader.py b/Tools/px_uploader.py index 1154506a11..3cb99b1ea2 100755 --- a/Tools/px_uploader.py +++ b/Tools/px_uploader.py @@ -569,7 +569,10 @@ class uploader(object): return False print("Attempting reboot on %s with baudrate=%d..." % (self.port.port, self.port.baudrate), file=sys.stderr) - print("If the board does not respond, unplug and re-plug the USB connector.", file=sys.stderr) + if "ttyS" in self.port.port: + print("If the board does not respond, check the connection to Flight Controller") + else: + print("If the board does not respond, unplug and re-plug the USB connector.", file=sys.stderr) try: # try MAVLINK command first @@ -614,7 +617,6 @@ def main(): # Load the firmware file fw = firmware(args.firmware) print("Loaded firmware for %x,%x, size: %d bytes, waiting for the bootloader..." % (fw.property('board_id'), fw.property('board_revision'), fw.property('image_size'))) - print("If the board does not respond within 1-2 seconds, unplug and re-plug the USB connector.") # tell any GCS that might be connected to the autopilot to give up # control of the serial port