in the code below im trying to call the function (timerfunctions() it it is only cycling once can anyone help with why it is doing this and how to fix it so it continually loops while inside the the while loop
void codeinputcheck() {
 if (codeinputcheckctrl == 0)
 {
  i = 0;         Â
  a = 0;
  j = 0;
  clearscreen();
  lcd.setCursor(0, 1);
  lcd.print(" Enter the code to ");
  lcd.setCursor(0, 2);
  lcd.print(" defuse the bomb! ");
  codeinputcheckctrl = 1;
 }
 while (customKey != 'A' ) {     Â
  customKey = customKeypad.getKey();
  if (customKey != NO_KEY && customKey != 'A' ) { Â
   lcd.setCursor(j + 7, 3);                Â
   lcd.print(customKey);
   j++;
  }
  timerfunctions();
  if (customKey == code[i] && i < sizeof(code)) {  Â
   a++;                      Â
   i++;
  }
  else {
   a--;                      Â
  }
 }
 customKey = NO_KEY;
}