Skip to content

Commit

Permalink
Fix #20, disableChannel bug() a.o.
Browse files Browse the repository at this point in the history
  • Loading branch information
RobTillaart committed Apr 15, 2024
1 parent b24bf61 commit a9447f6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions TCA9548.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,7 @@ bool TCA9548::disableChannel(uint8_t channel)
bool TCA9548::selectChannel(uint8_t channel)
{
if (channel >= _channels) return false;
setChannelMask(0x01 << channel);
return true;
return setChannelMask(0x01 << channel);
}


Expand Down

0 comments on commit a9447f6

Please sign in to comment.