mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-06-04 13:55:40 +08:00
Fixed code style
This commit is contained in:
@@ -40,10 +40,12 @@ if mode == 1 :
|
||||
c = ser.read(7)
|
||||
print ("AP responded with: " + c)
|
||||
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)
|
||||
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)
|
||||
except serial.serialutil.SerialException:
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user