tags:

views:

278

answers:

2

Hi there,

does anybody know how this warning can be suppressed? there is no way for me to avoid them (they stem from a framework i use).

Thanks!

+1  A: 
Ville Laurikari
A: 

just add static to your declaration

PROGMEM static char my_byte[100] = {0x00,0x01,0x02,0x03 ...... }

then retrieve it as

char any_byte;

int index;

any_byte = pgm_read_byte(&(my_byte[index])) ;

ADNAN