ST Expansion SW Team / Mbed 2 deprecated HelloWorld_53L1A1_Polling_All

Dependencies:   mbed X_NUCLEO_53L1A1_mbed

Revision:
20:639c4cbcfad9
Parent:
19:27f341756cb6
Child:
21:769dbb594f88
diff -r 27f341756cb6 -r 639c4cbcfad9 main.cpp
--- a/main.cpp	Thu May 23 12:01:43 2019 +0000
+++ b/main.cpp	Thu May 23 12:09:59 2019 +0000
@@ -131,12 +131,12 @@
             board->sensor_centre->VL53L1X_GetDistance(&distance_centre);
         }
         if (ready_left) {
-            board->sensor_centre->VL53L1X_GetRangeStatus(&ready_left);
-            board->sensor_centre->VL53L1X_GetDistance(&distance_left);
+            board->sensor_left->VL53L1X_GetRangeStatus(&ready_left);
+            board->sensor_left->VL53L1X_GetDistance(&distance_left);
         }
         if (ready_right) {
-            board->sensor_centre->VL53L1X_GetRangeStatus(&ready_right);
-            board->sensor_centre->VL53L1X_GetDistance(&distance_right);
+            board->sensor_right->VL53L1X_GetRangeStatus(&ready_right);
+            board->sensor_right->VL53L1X_GetDistance(&distance_right);
         }
 
         if (board->sensor_centre != NULL) {