Skip to content

Commit

Permalink
Fixed bad enum usage in single reading example. Fixes #5
Browse files Browse the repository at this point in the history
  • Loading branch information
mjbogusz committed Oct 15, 2018
1 parent 3533c7f commit b2fb4d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/single.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ int main() {
// Lower the return signal rate limit (default is 0.25 MCPS)
sensor.setSignalRateLimit(0.1);
// Increase laser pulse periods (defaults are 14 and 10 PCLKs)
sensor.setVcselPulsePeriod(VL53L0X::VcselPeriodPreRange, 18);
sensor.setVcselPulsePeriod(VL53L0X::VcselPeriodFinalRange, 14);
sensor.setVcselPulsePeriod(VcselPeriodPreRange, 18);
sensor.setVcselPulsePeriod(VcselPeriodFinalRange, 14);
} catch (const std::exception & error) {
std::cerr << "Error enabling long range mode with reason:" << std::endl << error.what() << std::endl;
return 2;
Expand Down

0 comments on commit b2fb4d3

Please sign in to comment.