Skip to content

Commit 49ad36c

Browse files
author
Jasper Klein
committed
Fix a few compile errors against avr-gcc 4.7 on ubuntu.
"variable ‘helpText1’ must be const in order to be put into read-only section by means of ‘__attribute__((progmem))’"
1 parent 8fa0aee commit 49ad36c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

PortsSHT11.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ enum {
2121
RESET = 0x1e,
2222
};
2323

24-
static uint8_t crcTab [] PROGMEM = {
24+
const static uint8_t crcTab [] PROGMEM = {
2525
0, 49, 98, 83, 196, 245, 166, 151, 185, 136, 219, 234, 125, 76, 31, 46, 67,
2626
114, 33, 16, 135, 182, 229, 212, 250, 203, 152, 169, 62, 15, 92, 109, 134,
2727
183, 228, 213, 66, 115, 32, 17, 63, 14, 93, 108, 251, 202, 153, 168, 197,

examples/RF12/RF12demo/RF12demo.ino

+2-2
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,7 @@ static void df_replay (word seqnum, long asof) {
526526

527527
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
528528

529-
char helpText1[] PROGMEM =
529+
const char helpText1[] PROGMEM =
530530
"\n"
531531
"Available commands:" "\n"
532532
" <nn> i - set node ID (standard node ids are 1..26)" "\n"
@@ -543,7 +543,7 @@ char helpText1[] PROGMEM =
543543
" <hchi>,<hclo>,<addr>,<cmd> f - FS20 command (868 MHz)" "\n"
544544
" <addr>,<dev>,<on> k - KAKU command (433 MHz)" "\n"
545545
;
546-
char helpText2[] PROGMEM =
546+
const char helpText2[] PROGMEM =
547547
"Flash storage (JeeLink only):" "\n"
548548
" d - dump all log markers" "\n"
549549
" <sh>,<sl>,<t3>,<t2>,<t1>,<t0> r - replay from specified marker" "\n"

0 commit comments

Comments
 (0)