code compiles, added global variable gLCDErrorFlags