initial release
Revision 19:1727c86ac63b, committed 2017-10-13
- Comitter:
- Davidroid
- Date:
- Fri Oct 13 22:04:16 2017 +0000
- Parent:
- 18:2413acea538f
- Child:
- 21:99c367e8a402
- Commit message:
- Astyle formatting.
Changed in this revision
| Components/VL53L0X.lib | Show annotated file Show diff for this revision Revisions of this file |
| XNucleo53L0A1.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/Components/VL53L0X.lib Fri Oct 13 15:32:03 2017 +0000 +++ b/Components/VL53L0X.lib Fri Oct 13 22:04:16 2017 +0000 @@ -1,1 +1,1 @@ -https://os.mbed.com/teams/ST/code/VL53L0X/#d07edeaff6f1 +https://os.mbed.com/teams/ST/code/VL53L0X/#e9269ff624ed
--- a/XNucleo53L0A1.cpp Fri Oct 13 15:32:03 2017 +0000
+++ b/XNucleo53L0A1.cpp Fri Oct 13 22:04:16 2017 +0000
@@ -45,10 +45,11 @@
XNucleo53L0A1 *XNucleo53L0A1::instance(DevI2C *ext_i2c)
{
- if (_instance == NULL)
+ if (_instance == NULL) {
_instance = new XNucleo53L0A1(ext_i2c);
- else
+ } else {
VL53L0X_ErrLog("Failed to create XNucleo53L0A1 instance\n\r");
+ }
return _instance;
}
@@ -56,10 +57,11 @@
PinName gpio1_centre,
PinName gpio1_left, PinName gpio1_right)
{
- if (_instance == NULL)
+ if (_instance == NULL) {
_instance = new XNucleo53L0A1(ext_i2c, gpio1_centre, gpio1_left, gpio1_right);
- else
+ } else {
VL53L0X_ErrLog("Failed to create XNucleo53L0A1 instance\n\r");
+ }
return _instance;
}