     case INPUT_PCBMICS:
       //Select Input
       myTympan.inputSelect(TYMPAN_INPUT_ON_BOARD_MIC); // use the on-board microphones
-      aicShield.inputSelect(TYMPAN_INPUT_ON_BOARD_MIC);
+      earpieceShield.inputSelect(TYMPAN_INPUT_ON_BOARD_MIC);
       
     case INPUT_MICJACK_MIC:
       //Select Input
       myTympan.inputSelect(TYMPAN_INPUT_JACK_AS_MIC); // use the mic jack
-      aicShield.inputSelect(TYMPAN_INPUT_JACK_AS_MIC);
+      earpieceShield.inputSelect(TYMPAN_INPUT_JACK_AS_MIC);
       
   case INPUT_MICJACK_LINEIN:
       //Select Input
       myTympan.inputSelect(TYMPAN_INPUT_JACK_AS_LINEIN); // use the mic jack
-      aicShield.inputSelect(TYMPAN_INPUT_JACK_AS_LINEIN);
+      earpieceShield.inputSelect(TYMPAN_INPUT_JACK_AS_LINEIN);
 
     case INPUT_LINEIN_SE:      
       //Select Input
       myTympan.inputSelect(TYMPAN_INPUT_LINE_IN); // use the line-input through holes
-      aicShield.inputSelect(TYMPAN_INPUT_LINE_IN);
+      earpieceShield.inputSelect(TYMPAN_INPUT_LINE_IN);
       
     case INPUT_PDMMICS:
       //Set the AIC's ADC to digital mic mode. Assign MFP4 to output a clock for the PDM, and MFP3 as the input to the PDM data line
       myTympan.enableDigitalMicInputs(true);
-      aicShield.enableDigitalMicInputs(true);
+      earpieceShield.enableDigitalMicInputs(true);
       break;
   }
 

void loop() {
  //respond to Serial commands
  while (Serial.available()) serialManager.respondToByte((char)Serial.read());   //USB Serial
  while (Serial1.available()) serialManager.respondToByte((char)Serial1.read()); //BT Serial

  //service the SD recording
  serviceSD();


  //Set gain
  myTympan.setInputGain_dB(inputGain_dB);   //set the AIC on the main Tympan board
  earpieceShield.setInputGain_dB(inputGain_dB);  //set the AIC on the Earpiece Shield
  myTympan.print("Input Gain: "); myTympan.print(inputGain_dB); myTympan.println("dB");
}

