I don't see any reference to EEPROM at all...
Please post all your code. If it's to long, try to make a small program which demonstrates the same problem.
I don't see any reference to EEPROM at all...
Please post all your code. If it's to long, try to make a small program which demonstrates the same problem.