Revert and extend previous change pin check change

Reviert previous change of #if BLAH_PIN > 0 to #if defined(BLAH_PIN) &&
BLAH_PIN > -1. Unfortunately some times pin 0 is used. For my sins I've
gone through and replaced all unsafe checks of #if BLAH_PIN > -1 with
the safe version.
This commit is contained in:
Robert F-C
2013-05-22 21:33:23 +10:00
parent 440cf2bc10
commit 40eb07bad4
7 changed files with 135 additions and 133 deletions

View File

@@ -47,6 +47,6 @@
#endif
#endif
#if DIGIPOTSS_PIN > -1
#if defined(DIGIPOTSS_PIN) && DIGIPOTSS_PIN > -1
#include <SPI.h>
#endif