#136027 - spinal_cord - Sat Jul 28, 2007 5:00 pm
I've had a little look at cardme for saveing/loading from eeprom/flash, but I can seem to get it to work properly, am I doing something wrong?
I'm trying to save '255' but it seems to be loading back '0'.
_________________
I'm not a boring person, it's just that boring things keep happening to me.
Homepage
Code: |
int cardtype=cardmeGetType(); u32 address=0; u8 data=255; u32 length=1; cardmeWriteEeprom(address, &data, length, cardtype); cardmeReadEeprom(address, &data, length, cardtype); PA_OutputText(0,1,2,"Return %d",data); |
I'm trying to save '255' but it seems to be loading back '0'.
_________________
I'm not a boring person, it's just that boring things keep happening to me.
Homepage