align indentation

main
yikth 6 years ago
parent 2434ba57f5
commit 3bb75e6245

@ -117,15 +117,15 @@ try:
Ab.setPWMB(PWM) Ab.setPWMB(PWM)
print(PWM) print(PWM)
else: else:
if dist < 20: if dist < 20:
n = 0
Ab.stop()
print("run into obstabcle")
else:
n += 1
if n > 20000:
n = 0 n = 0
Ab.stop() Ab.stop()
print("run into obstabcle")
else:
n += 1
if n > 20000:
n = 0
Ab.stop()
except KeyboardInterrupt: except KeyboardInterrupt:
GPIO.cleanup(); GPIO.cleanup();

Loading…
Cancel
Save