diff --git a/Adafruit_SPIDevice.h b/Adafruit_SPIDevice.h index 69c7164..7a6c0f5 100644 --- a/Adafruit_SPIDevice.h +++ b/Adafruit_SPIDevice.h @@ -116,8 +116,8 @@ class Adafruit_SPIDevice { private: #ifdef BUSIO_HAS_HW_SPI - SPIClass *_spi; - SPISettings *_spiSetting; + SPIClass *_spi = nullptr; + SPISettings *_spiSetting = nullptr; #else uint8_t *_spi = nullptr; uint8_t *_spiSetting = nullptr;