Add break expression into the switch ... case expresion
Write the data into the eeprom after setting the global data