TRR2018 omar

Dependencies:   mbed

Fork of biniou by TRR 2018

Revision:
45:7d67809bd7bf
Parent:
44:69751c05a8f3
Child:
46:9262b07b0833
Child:
48:df2b4b6feceb
--- a/stateMachines.cpp	Thu Sep 20 12:04:55 2018 +0000
+++ b/stateMachines.cpp	Thu Sep 20 12:11:11 2018 +0000
@@ -530,7 +530,7 @@
 #if (DEBUG > 3)
     pc.printf("\r\nUpdate MaxSpeed\r\n");
 #endif
-    if(p_sectionCourante != NULL) {
+    if(p_sectionCourante == NULL) {
         st_tmpMaxSpeed = BLOCKED;
     } else if(st_maxSpeed == BLOCKED && strengthLidar > LIDAR_STRENGTH_THRESOLD && distLidar < p_sectionCourante->lidarWarningDist_cm) {
         st_tmpMaxSpeed = BLOCKED;