diff --git a/hardware/libraries/Firmata/Firmata.cpp b/hardware/libraries/Firmata/Firmata.cpp index de58a411d..feb3defda 100644 --- a/hardware/libraries/Firmata/Firmata.cpp +++ b/hardware/libraries/Firmata/Firmata.cpp @@ -27,10 +27,14 @@ extern "C" { #include #include + // use the abs in WConstants.h, not the one in stdlib.h + #undef abs + // Wiring Core Includes #include "WConstants.h" } + #include "Firmata.h" #include "EEPROM.h" #include "HardwareSerial.h" @@ -66,6 +70,7 @@ void FirmataClass::systemReset(void) // output type of message that is next on the queue int FirmataClass::available(void) { + return -1; // TODO output next available message type, or -1 if nothing }