We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2c197fa commit beabdd6Copy full SHA for beabdd6
Source/LightEvidenceSource.m
@@ -86,11 +86,12 @@ - (double)levelFromRawLeft:(uint64_t)left andRight:(uint64_t)right {
86
// COMMENTS(jbeker) below is the observed max value on a 15" Late 2013 Macbook Pro
87
// This value is ridiculous and results in a much smaller
88
// useful value range.
89
- const double kMaxLightValue = 4294967295.0;
+ const double kClosedLightValue = 4294967295.0;
90
+ const double kMaxLightValue = 67092480.0;;
91
92
const double avg = (left + right) / 2; // determine average value from the two sensors
93
- if (avg == kMaxLightValue) {
94
+ if (avg == kClosedLightValue) {
95
return 0; // COMMENTS(jbeker) on a 15" Late 2013 Macbook Pro it returns max value when the laptop is shut
96
} else {
97
return (avg / kMaxLightValue); // normalize
0 commit comments