Skip to content

Commit

Permalink
Merge pull request #43 from YordanGanev/fix-tsl2591-begin-return-status
Browse files Browse the repository at this point in the history
[#38] Makes begin() return status
  • Loading branch information
ladyada authored Mar 19, 2021
2 parents 13c5776 + 2a70a0e commit 6bc1572
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions Adafruit_TSL2591.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,13 +111,7 @@ boolean Adafruit_TSL2591::begin(TwoWire *theWire, uint8_t addr) {
@returns True if a TSL2591 is found, false on any failure
*/
/**************************************************************************/
boolean Adafruit_TSL2591::begin(uint8_t addr) {

begin(&Wire);
_addr = addr;

return true;
}
boolean Adafruit_TSL2591::begin(uint8_t addr) { return begin(&Wire, addr); }

/**************************************************************************/
/*!
Expand Down

0 comments on commit 6bc1572

Please sign in to comment.