We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7e52705 + 358a987 commit 2e271ddCopy full SHA for 2e271dd
src/SparkFun_SHTC3.cpp
@@ -169,11 +169,6 @@ SHTC3_Status_TypeDef SHTC3::checkID()
169
return abortUpdate(retval, __FILE__, __LINE__);
170
}
171
172
- while (_wire->available()) // Clear out the I2C buffer, jic
173
- {
174
- _wire->read();
175
- }
176
-
177
retval = wake();
178
if (retval != SHTC3_Status_Nominal)
179
{
@@ -316,10 +311,6 @@ SHTC3_Status_TypeDef SHTC3::update()
316
311
case SHTC3_CMD_CSE_RHF_LPM:
317
312
case SHTC3_CMD_CSE_TF_NPM:
318
313
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
322
323
314
numBytesRx = _wire->requestFrom(SHTC3_ADDR_7BIT, numBytesRequest);
324
315
break;
325
0 commit comments