//____________Defining global variables________________________________________
boolean pType = 0; //Choose BAR = false /psi = true =!0
//____________Reading values from eeprom_______________________________________
pType = EEPROM.read(0);
void saveSettings()
{
if (flagChanges = 1) //Only save if necassary!
{
EEPROM.write(0,pType); //Pressure units
}
else
{
lcd.clear();
lcd.setCursor(2, 1); // set the cursor to column 3, line 0
lcd.print("NO CHANGES MADE!");
lcd.setCursor(4, 2); // set the cursor to column 3, line 0
lcd.print("EXITING MENU");
delay(500);
menu.moveUp(); //EXIT up one level
}
}
Causes error message
expected constructor, destructor, or type conversion before '=' token
I can't figure out what's causing this.