mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-22 01:12:31 +00:00
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:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user