mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-27 18:27:05 +08:00
px_uploader: fix code and output spacing
This commit is contained in:
@@ -346,7 +346,7 @@ class uploader(object):
|
|||||||
# if it fails we are on a real Serial Port
|
# if it fails we are on a real Serial Port
|
||||||
self.ackWindowedMode = True
|
self.ackWindowedMode = True
|
||||||
|
|
||||||
self.port.baudrate =self.baudrate_bootloader
|
self.port.baudrate = self.baudrate_bootloader
|
||||||
|
|
||||||
# send the GET_DEVICE command and wait for an info parameter
|
# send the GET_DEVICE command and wait for an info parameter
|
||||||
def __getInfo(self, param):
|
def __getInfo(self, param):
|
||||||
@@ -398,7 +398,7 @@ class uploader(object):
|
|||||||
|
|
||||||
# send the CHIP_ERASE command and wait for the bootloader to become ready
|
# send the CHIP_ERASE command and wait for the bootloader to become ready
|
||||||
def __erase(self, label):
|
def __erase(self, label):
|
||||||
print("Windowed mode:%s" % self.ackWindowedMode)
|
print("Windowed mode: %s" % self.ackWindowedMode)
|
||||||
print("\n", end='')
|
print("\n", end='')
|
||||||
self.__send(uploader.CHIP_ERASE +
|
self.__send(uploader.CHIP_ERASE +
|
||||||
uploader.EOC)
|
uploader.EOC)
|
||||||
|
|||||||
Reference in New Issue
Block a user