Skip to content

Commit

Permalink
Remove unused variable - treated as an error on ESP32 v2.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulZC committed Jul 12, 2022
1 parent d7902d1 commit 57f7feb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SparkFun_Qwiic_Humidity_AHT20.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ void AHT20::readData()

if (_i2cPort->requestFrom(_deviceAddress, (uint8_t)6) > 0)
{
uint8_t state = _i2cPort->read();
_i2cPort->read(); // Read and discard state

uint32_t incoming = 0;
incoming |= (uint32_t)_i2cPort->read() << (8 * 2);
Expand Down

0 comments on commit 57f7feb

Please sign in to comment.