mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-06-05 06:54:49 +08:00
Fixed code style
This commit is contained in:
@@ -40,10 +40,12 @@ if mode == 1 :
|
|||||||
c = ser.read(7)
|
c = ser.read(7)
|
||||||
print ("AP responded with: " + c)
|
print ("AP responded with: " + c)
|
||||||
if c == "TIMEOUT":
|
if c == "TIMEOUT":
|
||||||
print("Error: FBW bootloader TIMEOUT. Power cycle the board and wait between 5 seconds to 20 seconds to retry.")
|
print(
|
||||||
|
"Error: FBW bootloader TIMEOUT. Power cycle the board and wait between 5 seconds to 20 seconds to retry.")
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
elif c != "FBWOKOK":
|
elif c != "FBWOKOK":
|
||||||
print("Error: unknown error. Power cycle the board and wait between 5 seconds to 20 seconds to retry.")
|
print(
|
||||||
|
"Error: unknown error. Power cycle the board and wait between 5 seconds to 20 seconds to retry.")
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
except serial.serialutil.SerialException:
|
except serial.serialutil.SerialException:
|
||||||
pass
|
pass
|
||||||
|
|||||||
Reference in New Issue
Block a user