Merge pull request #1 from adafruit/init-as-nullptr
Initialize i2c_dev to nullptr in constructor
This commit is contained in:
commit
1846a7318a
1 changed files with 2 additions and 1 deletions
|
|
@ -25,6 +25,7 @@
|
|||
Adafruit_MLX90632::Adafruit_MLX90632() {
|
||||
TO0 = 25.0; // Initialize previous object temperature
|
||||
TA0 = 25.0; // Initialize previous ambient temperature
|
||||
i2c_dev = nullptr;
|
||||
}
|
||||
|
||||
/*!
|
||||
|
|
@ -694,4 +695,4 @@ double Adafruit_MLX90632::getObjectTemperature() {
|
|||
*/
|
||||
uint16_t Adafruit_MLX90632::swapBytes(uint16_t value) {
|
||||
return (value << 8) | (value >> 8);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue