Fixed code style

This commit is contained in:
kevindehecker
2016-03-15 10:31:07 +01:00
parent 6d874bc4e8
commit 55844c2289
+4 -2
View File
@@ -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