From 72d917f70cdf8edbb11c0648b59bb9afeae64065 Mon Sep 17 00:00:00 2001 From: "David A. Mellis" Date: Wed, 21 Nov 2007 14:55:09 +0000 Subject: [PATCH] Fixing some warnings. --- libraries/Firmata/Firmata.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libraries/Firmata/Firmata.cpp b/libraries/Firmata/Firmata.cpp index de58a41..feb3def 100644 --- a/libraries/Firmata/Firmata.cpp +++ b/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 }