if (fed3.FEDmode == 1) {
fed3.sessiontype = "Poke_Hab"; //The text in "sessiontype" will appear on the screen and in the logfile
fed3.disableSleep(); // allows monitoring of pelletWell for CenterPoke to initiate trial
centerPoke = 0;
if (centerPoke == 0 && fed3.PelletAvailable == false) {
attachInterrupt(digitalPinToInterrupt(PELLET_WELL),centerPokeISR, FALLING);
if (digitalRead(PELLET_WELL) == LOW) { //centerport poked
centerPoke = 1;
delay(1000);
}
}
if (centerPoke == 1) {
fed3.Feed(50);
delay(3000); //give time to eat so pellet retrieval is not considered a center port poke
}
} //end Poke_hab