From 89a902524a0314ac9c12c3597d800c69a22d2d91 Mon Sep 17 00:00:00 2001 From: David Sidrane Date: Thu, 19 Jul 2018 09:40:33 -0700 Subject: [PATCH] px_uploader:Revert the rebooting text to have baudrate Using the port name is platform dependent. It may give not provide the correct feedback. The port can be ttyS, or ftdi or CDC/ACM. While it is true that buadrate does not matter on CDC/ACM. It is better to give more information about what the code is doing before filtering by the port name. --- Tools/px_uploader.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tools/px_uploader.py b/Tools/px_uploader.py index 4a317f47ec..4e2b115f0c 100755 --- a/Tools/px_uploader.py +++ b/Tools/px_uploader.py @@ -681,9 +681,9 @@ class uploader(object): if (not self.__next_baud_flightstack()): return False - print("Attempting reboot on %s..." % (self.port.port), file=sys.stderr) + print("Attempting reboot on %s with baudrate=%d..." % (self.port.port, self.port.baudrate), file=sys.stderr) if "ttyS" in self.port.port: - print("If the board does not respond, check the connection to the Flight Controller and the baud rate (set to %d)" % (self.port.baudrate)) + print("If the board does not respond, check the connection to the Flight Controller") else: print("If the board does not respond, unplug and re-plug the USB connector.", file=sys.stderr)