           Serial.print(EEprom::eEEPROM_27512); Serial.println(F(" - 27512 (64K * 8)"));
           Serial.println(F("EEprom::eEEPROM_NONE - Cancel"));
           Serial.print(F("E(E)PROM type? ")); Serial.flush();
-          eepromType = Serial.parseInt();
+          eepromType = (EEprom::eEEPROMtype)Serial.parseInt();
           if (eepromType) {
             Serial.println(eepromType);
             eeprom.setType(eepromType);
+            eepromAddr = 0;  // start again with first addr
           }
         break;
 

  delay(5000);
}

/** Test code to test the address latching unit. */
void testAddressLatches() {

  static uint8_t addr = 0x01;

          Serial.println();
        break;
      
      case 't':
      case 'T':
          Serial.println();
          Serial.println(F("Select any possible E(E)PROM type:"));
          Serial.print(EEprom::eEEPROM_2716); Serial.println(F(" - 2716 (2K * 8)"));
          Serial.print(EEprom::eEEPROM_2732); Serial.println(F(" - 2732 (4K * 8)"));
          Serial.print(EEprom::eEEPROM_2764); Serial.println(F(" - 2764 (8K * 8)"));
