Skip to content

Commit 9cfa878

Browse files
author
Johann Richard
committed
Arduino 1.0 Fix
Make the library compatible w/ Arduino 1.0 Signed-off-by: Johann Richard <jor@foryouandyourcustomers.com>
1 parent 7e37498 commit 9cfa878

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

WebSocket.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,11 @@ Currently based off of "The Web Socket protocol" draft (v 75):
3939
http://tools.ietf.org/html/draft-hixie-thewebsocketprotocol-75
4040
*/
4141

42-
#include "WProgram.h"
42+
#if ARDUINO >= 100
43+
#include <Arduino.h> // Arduino 1.0
44+
#else
45+
#include <WProgram.h> // Arduino 0022
46+
#endif
4347
#include <stdlib.h>
4448

4549
#include <SPI.h>

0 commit comments

Comments
 (0)