Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions src/SparkFun_SHTC3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -169,11 +169,6 @@ SHTC3_Status_TypeDef SHTC3::checkID()
return abortUpdate(retval, __FILE__, __LINE__);
}

while (_wire->available()) // Clear out the I2C buffer, jic
{
_wire->read();
}

retval = wake();
if (retval != SHTC3_Status_Nominal)
{
Expand Down Expand Up @@ -316,10 +311,6 @@ SHTC3_Status_TypeDef SHTC3::update()
case SHTC3_CMD_CSE_RHF_LPM:
case SHTC3_CMD_CSE_TF_NPM:
case SHTC3_CMD_CSE_TF_LPM: // Address+read will yield an ACK and then clock stretching will occur
while (_wire->available()) // Clear out the I2C buffer so that we know our data is next
{
_wire->read();
}
numBytesRx = _wire->requestFrom(SHTC3_ADDR_7BIT, numBytesRequest);
break;

Expand Down