Add error check for STMPE610 config
@@ -203,6 +203,8 @@ extern "C" {
Adafruit_STMPE610 m_touch = Adafruit_STMPE610(ADATOUCH_PIN_CS);
#elif (ADATOUCH_SPI_SW) // Use software SPI
Adafruit_STMPE610 m_touch = Adafruit_STMPE610(ADATOUCH_PIN_CS, ADATOUCH_PIN_SDI, ADATOUCH_PIN_SDO, ADATOUCH_PIN_SCK);
+ #else // No interface flag set
+ #error "DRV_TOUCH_ADA_STMPE610 but no ADATOUCH_I2C_* or ADATOUCH_SPI_* set in config"
#endif
// ------------------------------------------------------------------------
#elif defined(DRV_TOUCH_ADA_FT6206)
