initial release
Revision 28:0e99f593daa9, committed 2019-07-24
- Comitter:
- johnAlexander
- Date:
- Wed Jul 24 12:29:10 2019 +0000
- Parent:
- 27:afcf740eb7b8
- Child:
- 29:07d7751e8a6d
- Commit message:
- Rationalise sensor-class init_sensor & initialise_sensor, to remove duplication.
Changed in this revision
Components/VL53L1X.lib | Show annotated file Show diff for this revision Revisions of this file |
XNucleo53L1A1.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/Components/VL53L1X.lib Wed Jul 24 10:38:21 2019 +0000 +++ b/Components/VL53L1X.lib Wed Jul 24 12:29:10 2019 +0000 @@ -1,1 +1,1 @@ -https://os.mbed.com/teams/ST-Expansion-SW-Team/code/VL53L1X_mbed/#6d3ab15363a2 +https://os.mbed.com/teams/ST-Expansion-SW-Team/code/VL53L1X_mbed/#744e8b1b9837
--- a/XNucleo53L1A1.cpp Wed Jul 24 10:38:21 2019 +0000 +++ b/XNucleo53L1A1.cpp Wed Jul 24 12:29:10 2019 +0000 @@ -33,7 +33,7 @@ sensor_centre->vl53l1_off(); sensor_left->vl53l1_off(); sensor_right->vl53l1_off(); - status = sensor_centre->initialise_sensor(NEW_SENSOR_CENTRE_ADDRESS); + status = sensor_centre->init_sensor(NEW_SENSOR_CENTRE_ADDRESS); if (status) { delete sensor_centre; delete xshutdown_centre; @@ -45,7 +45,7 @@ n_dev++; } - status = sensor_left->initialise_sensor(NEW_SENSOR_LEFT_ADDRESS); + status = sensor_left->init_sensor(NEW_SENSOR_LEFT_ADDRESS); if (status) { delete sensor_left; delete xshutdown_left; @@ -57,7 +57,7 @@ n_dev++; } - status = sensor_right->initialise_sensor(NEW_SENSOR_RIGHT_ADDRESS); + status = sensor_right->init_sensor(NEW_SENSOR_RIGHT_ADDRESS); if (status) { delete sensor_right; delete xshutdown_right;