Running make, I get this error message:
Code: Select all
avr-gcc (GCC) 4.6.3
Compiling: main.c
avr-gcc -c -mmcu=attiny85 -I. -g -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -DF_CPU=8000000 -Wa,-adhlns=main.lst -std=gnu99 -DEU_CODES -DNA_CODES main.c -o main.o
main.c:82:21: error: variable 'NApowerCodes' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
main.c:83:21: error: variable 'EUpowerCodes' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
main.c: In function 'main':
main.c:271:7: warning: passing argument 1 of 'putnum_uh' makes integer from pointer without a cast [enabled by default]
util.h:11:6: note: expected 'uint16_t' but argument is of type 'const char *'
make: *** [main.o] Error 1
Thanks,
Jonas