Browse Source

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.
sbg
David Sidrane 7 years ago
parent
commit
89a902524a
  1. 4
      Tools/px_uploader.py

4
Tools/px_uploader.py

@ -681,9 +681,9 @@ class uploader(object): @@ -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)

Loading…
Cancel
Save