Skip to content

Commit

Permalink
Fix to be compatible with uint8_t ATIME.
Browse files Browse the repository at this point in the history
  • Loading branch information
itsayellow committed May 9, 2020
1 parent b440c00 commit 9f835c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/tcs34725autorange/tcs34725autorange.ino
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class tcs34725 {
private:
struct tcs_agc {
tcs34725Gain_t ag;
tcs34725IntegrationTime_t at;
uint8_t at;
uint16_t mincnt;
uint16_t maxcnt;
};
Expand Down Expand Up @@ -71,7 +71,7 @@ public:
// the start and end of the list.
//
const tcs34725::tcs_agc tcs34725::agc_lst[] = {
{ TCS34725_GAIN_60X, TCS34725_INTEGRATIONTIME_700MS, 0, 20000 },
{ TCS34725_GAIN_60X, TCS34725_INTEGRATIONTIME_614MS, 0, 20000 },
{ TCS34725_GAIN_60X, TCS34725_INTEGRATIONTIME_154MS, 4990, 63000 },
{ TCS34725_GAIN_16X, TCS34725_INTEGRATIONTIME_154MS, 16790, 63000 },
{ TCS34725_GAIN_4X, TCS34725_INTEGRATIONTIME_154MS, 15740, 63000 },
Expand Down

0 comments on commit 9f835c9

Please sign in to comment.