Correct ENABLE_EXTRA_GPIO usage

This commit is contained in:
Mathieu Maret 2016-03-27 00:51:28 +01:00
parent ce1f4fc3b2
commit 11bb75e45b

View File

@ -159,12 +159,11 @@ void setup() {
SKETCH_DEBUG_INIT(115200);
SKETCH_DEBUG_PRINTLN();
#ifndef ENABLE_EXTRA_GPIO
// Get GPIO 3 Status
Serial.swap(); //Switch Serial on GPIO 13 & 15
pinMode(3, INPUT_PULLUP);
int txStatus = digitalRead(3);
#ifndef ENABLE_EXTRA_GPIO
Serial.swap(); // Switch back on GPIO 1 & 3
#endif