Skip to content

Commit

Permalink
Merge pull request #6 from Abestanis/fix/buffer_overflow
Browse files Browse the repository at this point in the history
Fix writing past the end of the _intg_time buffer
  • Loading branch information
lakshanthad authored May 6, 2022
2 parents 457fcf7 + 42fbcc3 commit 69f7175
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Digital_Light_ISL29035.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ DigitalLightISL29035::DigitalLightISL29035():
_intg_time[0] = INTEGRATION_TIME0;
_intg_time[1] = INTEGRATION_TIME1;
_intg_time[2] = INTEGRATION_TIME2;
_intg_time[4] = INTEGRATION_TIME3;
_intg_time[3] = INTEGRATION_TIME3;

_ranges[0] = FULL_SCALE_LUX_RANGE0;
_ranges[1] = FULL_SCALE_LUX_RANGE1;
Expand Down

0 comments on commit 69f7175

Please sign in to comment.