i'm working on my first project in C on a ATmega8 (actually it's a porting of an asm project in C).
i've got some problems when i read a data from the eeprom (i can't understend where i'm wrong)
the piece of code is:
eepromData = eeprom_read_byte((uint8_t*)6);
if (eepromData == 0xff)
idCube = idCubeDefault; (*)
idCube = eepromData;
and i get the following error:
../MicrelCube3_2.c:352: error: expected expression before '=' token
on the line with the (*)
i just can't figure out what's wrong...