Skip to content

Commit 2e271dd

Browse files
committed
2 parents 7e52705 + 358a987 commit 2e271dd

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

src/SparkFun_SHTC3.cpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -169,11 +169,6 @@ SHTC3_Status_TypeDef SHTC3::checkID()
169169
return abortUpdate(retval, __FILE__, __LINE__);
170170
}
171171

172-
while (_wire->available()) // Clear out the I2C buffer, jic
173-
{
174-
_wire->read();
175-
}
176-
177172
retval = wake();
178173
if (retval != SHTC3_Status_Nominal)
179174
{
@@ -316,10 +311,6 @@ SHTC3_Status_TypeDef SHTC3::update()
316311
case SHTC3_CMD_CSE_RHF_LPM:
317312
case SHTC3_CMD_CSE_TF_NPM:
318313
case SHTC3_CMD_CSE_TF_LPM: // Address+read will yield an ACK and then clock stretching will occur
319-
while (_wire->available()) // Clear out the I2C buffer so that we know our data is next
320-
{
321-
_wire->read();
322-
}
323314
numBytesRx = _wire->requestFrom(SHTC3_ADDR_7BIT, numBytesRequest);
324315
break;
325316

0 commit comments

Comments
 (0)