Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed X_NUCLEO_53L1A1_mbed
Diff: main.cpp
- 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) {