Skip to content

Commit

Permalink
feat(node_sonar/src/main.TCA9548A): return if address > 7
Browse files Browse the repository at this point in the history
  • Loading branch information
shanisma committed Apr 13, 2021
1 parent c0729dc commit 84d1286
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nano_sonar/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ MCP4725 MCP_3(MCP4725_ADDRESS);

void TCA9548A(uint8_t bus)
{
if (i > 7) return;
if (bus > 7) return;
Wire.beginTransmission(TCA9548A_ADDRESS);
Wire.write(1 << bus);
Wire.endTransmission();
Expand Down

0 comments on commit 84d1286

Please sign in to comment.