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()
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
You can’t perform that action at this time.
0 commit comments