File tree Expand file tree Collapse file tree 1 file changed +0
-9
lines changed Expand file tree Collapse file tree 1 file changed +0
-9
lines changed Original file line number Diff line number Diff line change @@ -169,11 +169,6 @@ SHTC3_Status_TypeDef SHTC3::checkID()
169
169
return abortUpdate (retval, __FILE__, __LINE__);
170
170
}
171
171
172
- while (_wire->available ()) // Clear out the I2C buffer, jic
173
- {
174
- _wire->read ();
175
- }
176
-
177
172
retval = wake ();
178
173
if (retval != SHTC3_Status_Nominal)
179
174
{
@@ -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
- _wire->read ();
322
- }
323
314
numBytesRx = _wire->requestFrom (SHTC3_ADDR_7BIT, numBytesRequest);
324
315
break ;
325
316
You can’t perform that action at this time.
0 commit comments