aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid A. Mellis <d.mellis@arduino.cc>2007-11-21 14:55:09 +0000
committerDavid A. Mellis <d.mellis@arduino.cc>2007-11-21 14:55:09 +0000
commit72d917f70cdf8edbb11c0648b59bb9afeae64065 (patch)
tree073454a37441827f719d672be5008ba9768e5be0
parent759cf6c4ae348c9588929d10f3704716ae21e22d (diff)
Fixing some warnings.
-rw-r--r--libraries/Firmata/Firmata.cpp5
1 files changed, 5 insertions, 0 deletions
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 <inttypes.h>
#include <stdlib.h>
+ // 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
}