We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eef8b46 commit e8a6c4aCopy full SHA for e8a6c4a
src/sensor_tof_matrix.h
@@ -17,11 +17,13 @@ class SensorTofMatrix{
17
}
18
19
int begin(){
20
+ int out = 0;
21
wire->begin();
- sensor->begin();
22
- sensor->init_sensor();
23
- sensor->vl53l7cx_set_resolution(VL53L7CX_RESOLUTION_4X4);
24
- sensor->vl53l7cx_start_ranging();
+ out |= sensor->begin();
+ out |= sensor->init_sensor();
+ out |= sensor->vl53l7cx_set_resolution(VL53L7CX_RESOLUTION_4X4);
25
+ out |= sensor->vl53l7cx_start_ranging();
26
+ return out;
27
28
29
void print(){
0 commit comments