I am only getting error for this part of SETTING MENU ITEM CHARGING CURRENT code rest part of the code is fine...
//SET MENU - FLOATTYPE
if(setMenuPage==0){floatTemp = currentCharging;}
else
{
if(digitalRead(buttonBack)==1){while(digitalRead(buttonBack)==1){}currentCharging = floatTemp;cancelledMessageLCD();setMenuPage=0;}
if(digitalRead(buttonSelect)==1){while(digitalRead(buttonSelect)==1){}saveSettings();setMenuPage=0;savedMessageLCD();}
currentMenuSetMillis = millis();
if(digitalRead(buttonRight)==1)
{ //Right button press (increments setting values)
while(digitalRead(buttonRight)==1)
{
if(millis()-currentMenuSetMillis>longPressTime)
{ //Long Press
currentCharging += 1.00; //Increment by 1
currentCharging = constrain(currentCharging,0.0,cOutSystemMax); //Limit settings values to a range
lcd.setCursor(2,1);lcd.print(currentCharging,2);delay(longPressInterval); //Display settings data
}
else
{ //Short Press
currentCharging += 0.01; //Increment by 0.01
currentCharging = constrain(currentCharging,0.0,cOutSystemMax); //Limit settings values to a range
lcd.setCursor(2,1);lcd.print(currentCharging,2);delay(shortPressInterval); //Display settings data
}
lcd.print("A "); //Display unit
}
}
else if(digitalRead(buttonLeft)==1)
{ //Left button press (decrements setting values)
while(digitalRead(buttonLeft)==1)
{
if(millis()-currentMenuSetMillis>longPressTime)
{ //Long Press
currentCharging -= 1.00; //Increment by 1
currentCharging = constrain(currentCharging,0.0,cOutSystemMax); //Limit settings values to a range
lcd.setCursor(2,1);lcd.print(currentCharging,2);delay(longPressInterval); //Display settings data
}
else
{ //Short Press
currentCharging -= 0.01; //Increment by 0.01
currentCharging = constrain(currentCharging,0.0,cOutSystemMax); //Limit settings values to a range
lcd.setCursor(2,1);lcd.print(currentCharging,2);delay(shortPressInterval); //Display settings data
}
lcd.print("A "); //Display unit
}
}
}
}`