Skip to content
Snippets Groups Projects
Commit 89a90252 authored by David Sidrane's avatar David Sidrane
Browse files

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.
parent ade70cbb
No related branches found
Tags 1.2.0
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment