Initialize i2c_dev to nullptr in constructor

This alleviates the issue on initialisation and particularly on destruction and reinitialization of the driver.
This commit is contained in:
Tyeth Gundry 2025-08-22 12:30:28 +01:00 committed by GitHub
parent 25ae7b4997
commit dd363596d7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;
}
/*!