save state to eeprom, timeout timer