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.
This commit is contained in:
David Sidrane
2018-07-19 09:40:33 -07:00
parent ade70cbbdf
commit 89a902524a

View File

@@ -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)