#include "C:\Anthony\projects\WWC\arduino-0016\hardware\libraries\EEPROM\EEPROM.h" 
//#include <EEPROM.h>
#include "perm_args.h"

//
// Constructor
//
PermArgs::PermArgs()
  {
  char*  me = (char*)this;
  // Read the whole object from the EEPROM into memory
  for( int i=0; i < sizeof(PermArgs); i++ )
    me[i] = EEPROM.read( i );
  }
  
void  PermArgs::update()
  {
  char*  me = (char*)this;
  // Read the whole object from the EEPROM into memory
  for( int i=0; i < sizeof(PermArgs); i++ )
    if( me[i] != EEPROM.read(i) )
      EEPROM.write( i, me[i] );
  }
