#ifndef => #if !PIN_EXISTS

This commit is contained in:
Scott Lahteine committed 2017-11-22 16:28:52 -06:00
1 parent 001ce7a2fd
commit c2fc78c3a8
2 files changed
+3 -3

No files matched your search

@@ -76,7 +76,7 @@ static SPISettings spiConfig;
* @details Only configures SS pin since libmaple creates and initialize the SPI object
*/
void spiBegin() {
#ifndef SS_PIN
#if !PIN_EXISTS(SS)
#error "SS_PIN not defined!"
#endif
SET_OUTPUT(SS_PIN);