Skip to content

Commit 76840c0

Browse files
committed
Fix compile errors for arduino 1.5.7 - no testing done yet. Issue #67
1 parent c2d4210 commit 76840c0

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

FastLED.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
#define xstr(s) str(s)
88
#define str(s) #s
99
#define FASTLED_VERSION 2001000
10+
#define __PROG_TYPES_COMPAT__
11+
1012

1113
#include "controller.h"
1214
#include "fastpin.h"

colorutils.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#define __PROG_TYPES_COMPAT__
2+
13
#include <stdint.h>
24

35
#include "hsv2rgb.h"

noise.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#define P(x) p[(x)]
1414
#endif
1515

16-
FL_PROGMEM static uint8_t p[] = { 151,160,137,91,90,15,
16+
FL_PROGMEM static uint8_t const p[] = { 151,160,137,91,90,15,
1717
131,13,201,95,96,53,194,233,7,225,140,36,103,30,69,142,8,99,37,240,21,10,23,
1818
190, 6,148,247,120,234,75,0,26,197,62,94,252,219,203,117,35,11,32,57,177,33,
1919
88,237,149,56,87,174,20,125,136,171,168, 68,175,74,165,71,134,139,48,27,166,

0 commit comments

Comments
 (0)