File tree Expand file tree Collapse file tree 2 files changed +1
-8
lines changed Expand file tree Collapse file tree 2 files changed +1
-8
lines changed Original file line number Diff line number Diff line change 1
1
name =SparkFun MLX90614
2
- version =1.0.1
2
+ version =1.0.2
3
3
author =SparkFun Electronics <
[email protected] >
4
4
maintainer =SparkFun Electronics <sparkfun.com>
5
5
sentence =Library for the SparkFun IR Thermometer Evaluation Board and the MLX90614 IR thermometer.
Original file line number Diff line number Diff line change @@ -355,19 +355,12 @@ float IRTherm::calcTemperature(int16_t rawTemp)
355
355
356
356
uint8_t IRTherm::I2CReadWord (byte reg, int16_t * dest)
357
357
{
358
- int timeout = I2C_READ_TIMEOUT;
359
-
360
358
Wire.beginTransmission (_deviceAddress);
361
359
Wire.write (reg);
362
360
363
361
Wire.endTransmission (false ); // Send restart
364
362
Wire.requestFrom (_deviceAddress, (uint8_t ) 3 );
365
363
366
- while ((Wire.available () < 3 ) && (timeout-- > 0 ))
367
- delay (1 );
368
- if (timeout <= 0 )
369
- return 0 ;
370
-
371
364
uint8_t lsb = Wire.read ();
372
365
uint8_t msb = Wire.read ();
373
366
uint8_t pec = Wire.read ();
You can’t perform that action at this time.
0 commit comments