del not needed code

This commit is contained in:
Jason2866 2021-10-28 19:25:07 +02:00
parent ab6b2d1321
commit 256c1ff08e
1 changed files with 0 additions and 6 deletions

View File

@ -240,12 +240,6 @@ int16_t MutichannelGasSensor::readData(uint8_t cmd)
delay(2);
//get response
Wire.requestFrom(i2cAddress, (uint8_t)4); // request 4 bytes from slave device
while(Wire.available() == 0)
{
if(timeout++ > 100)
return -2;//time out
delay(2);
}
if(Wire.available() != 4)
return -3;//rtnData length wrong
buffer[0] = Wire.read();