Skip to content

Commit

Permalink
Merge pull request #110 from caternuson/iss109
Browse files Browse the repository at this point in the history
Init HW SPI members
  • Loading branch information
caternuson authored Nov 2, 2022
2 parents 0348f74 + 369413c commit 6a2e9b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Adafruit_SPIDevice.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 6a2e9b6

Please sign in to comment.