Skip to content

Commit

Permalink
Switch value of TSL2561_NO_READ_TIMEOUT from max(uint32_t) to 0
Browse files Browse the repository at this point in the history
  • Loading branch information
Abestanis committed May 31, 2022
1 parent 268880b commit 7b50b85
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions Digital_Light_TSL2561.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
#ifndef Digital_Light_TSL2561_H
#define Digital_Light_TSL2561_H

#include <limits>
#include <Arduino.h>

#define TSL2561_Control 0x80
Expand Down Expand Up @@ -102,12 +101,8 @@
#define B8C 0x0000 // 0.000 * 2^LUX_SCALE
#define M8C 0x0000 // 0.000 * 2^LUX_SCALE

#ifdef max // Unfortunately, Arduino.h defines max, which conflicts with the method name.
# undef max
#endif /* max */

/** No timeout while waiting for a read response from the digital light sensor. */
#define TSL2561_NO_READ_TIMEOUT std::numeric_limits<uint32_t>::max()
#define TSL2561_NO_READ_TIMEOUT 0

class TSL2561_CalculateLux {
public:
Expand Down

0 comments on commit 7b50b85

Please sign in to comment.