Skip to content

Commit

Permalink
Update Adafruit_VL6180X.cpp
Browse files Browse the repository at this point in the history
corrected typos on gain switch.
  • Loading branch information
victorh800 committed Nov 24, 2018
1 parent ac27a63 commit 7c1157d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Adafruit_VL6180X.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ float Adafruit_VL6180X::readLux(uint8_t gain) {
lux /= 1.25;
break;
case VL6180X_ALS_GAIN_1_67:
lux /= 1.76;
lux /= 1.67;
break;
case VL6180X_ALS_GAIN_2_5:
lux /= 2.5;
Expand All @@ -236,7 +236,7 @@ float Adafruit_VL6180X::readLux(uint8_t gain) {
lux /= 20;
break;
case VL6180X_ALS_GAIN_40:
lux /= 20;
lux /= 40;
break;
}
lux *= 100;
Expand Down

0 comments on commit 7c1157d

Please sign in to comment.