Adafruit-GFX-Library
Adafruit-GFX-Library copied to clipboard
Fix 2 recent problems with SPITFT initSPI and the destructor
Fixes two problems identified by examination of PR #333. These are two separable commits in the PR.
-
Destructor is responsible for creating/destroying the active union member
-
Handle SPI_INTERFACES_COUNT==0
Deeper discussion in https://github.com/adafruit/Adafruit-GFX-Library/pull/333#discussion_r568017375 so it doesn't have to be repeated here.