check values changed to avoid needless eeprom writes