
// save the settings to EEPROM
void  Settings_Put()
{
byte   cnt, 
       *bp;
uint   addr=0;   // where to save the structure

  // point to the settings variable
  bp = (byte *)&Settings;

  // write the settings
  for (cnt = 0; cnt < sizeof(Settings); cnt++)
  {
    NVRwrite(addr++, *bp++);
  }
}

