1
0
mirror of https://github.com/arduino/Arduino.git synced 2024-11-30 11:24:12 +01:00

Adding #ifdef guard to WProgram.h to prevent multiple #includes.

Removing Print class inheritance from Firmata since it's not clear that it can be implemented in a way that's compatible with the Firmata protocol and the Print class interface.
This commit is contained in:
David A. Mellis 2008-09-15 21:09:13 +00:00
parent 236fcbb122
commit 362b952a68
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,6 @@
#ifndef WProgram_h
#define WProgram_h
#include <stdlib.h>
#include <string.h>
#include <math.h>
@ -17,3 +20,5 @@ long random(long, long);
void randomSeed(unsigned int);
long map(long, long, long, long, long);
#endif
#endif

View File

@ -67,7 +67,7 @@ extern "C" {
// TODO make it a subclass of HardwareSerial
class FirmataClass : public Print
class FirmataClass
{
public:
FirmataClass();