From 1710440f3a6201174a65ee3cd73c65889046df9d Mon Sep 17 00:00:00 2001 From: gitname Date: Fri, 26 Jan 2018 01:10:25 -0800 Subject: [PATCH] Fix bug in `if` condition The bug prevented the condition from ever being `true`. --- .../example/Smart_Robot_Car_V2/Smart_Robot_Car_V2.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UCTRONICS_Smart_Robot_Car/example/Smart_Robot_Car_V2/Smart_Robot_Car_V2.ino b/UCTRONICS_Smart_Robot_Car/example/Smart_Robot_Car_V2/Smart_Robot_Car_V2.ino index 752f3c1..1111c3d 100644 --- a/UCTRONICS_Smart_Robot_Car/example/Smart_Robot_Car_V2/Smart_Robot_Car_V2.ino +++ b/UCTRONICS_Smart_Robot_Car/example/Smart_Robot_Car_V2/Smart_Robot_Car_V2.ino @@ -215,7 +215,7 @@ void turn() { moveBackward(); delay(500); int x = random(1); - if (x = 0) { + if (x == 0) { turnRight(); } else {