       {
         //We failed the read dymanic data
         //Set the flag in the EEPROM that the contents of the EEPROM is invalid
-        EEPROM.write(new_bond_index * BYTES_PER_BOND_IN_HEADER, 0x00);
+        EEPROM.write(new_bond_index * BYTES_PER_BOND_IN_HEADER, 0xFF);
 
         status = false;
         break;

          //Reset the number of bonds and count from the EEPROM header
          bond_number = 0;
          eeprom_status = EEPROM.read(0);
          if (eeprom_status != 0x00)
          {
            bond_number++;
            //Update the write offset to the correct number
            eeprom_write_offset = EEPROM.read(bond_number * BYTES_PER_BOND_IN_HEADER + 1);
            if (0x00 != EEPROM.read(2))
            {
              bond_number++;
              //This is needed only if we wanted to add a 3rd bond

                  //Reset the number of bonds and count from the EEPROM header
                  bond_number = 0;
                  eeprom_status = EEPROM.read(0);
                  if (eeprom_status != 0xFF)
                  {
                    bond_number++;
                    //Update the write offset to the correct number
                    eeprom_write_offset = EEPROM.read(bond_number * BYTES_PER_BOND_IN_HEADER + 1);
                    if (EEPROM.read(2) != 0xFF)
                    {
                      bond_number++;
                      //This is needed only if we wanted to add a 3rd bond
