Skip to content

Commit

Permalink
Add support for latest version of Arduino IDE (1.04/1.05)
Browse files Browse the repository at this point in the history
  • Loading branch information
harlequin-tech committed Oct 14, 2013
1 parent 28b3893 commit a6de921
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions WiFlyHQ.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1563,7 +1563,7 @@ int8_t WiFly::getDHCPMode()
return mode;
}

static struct {
const static struct {
uint8_t protocol;
char name[6];
} protmap[] __attribute__((__progmem__)) = {
Expand Down Expand Up @@ -2131,7 +2131,7 @@ char WiFly::getSpaceReplace(void)
}

/* data rates to register setting */
static struct {
const static struct {
uint32_t rate;
uint8_t setting;
} rateMap[] __attribute__((__progmem__)) = {
Expand Down
4 changes: 4 additions & 0 deletions WiFlyHQ.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@
#include <avr/pgmspace.h>
#include <IPAddress.h>

#if (ARDUINO >= 103)
typedef char prog_char;
#endif

/* IP Protocol bits */
#define WIFLY_PROTOCOL_UDP 0x01
#define WIFLY_PROTOCOL_TCP 0x02
Expand Down

0 comments on commit a6de921

Please sign in to comment.