Can someone tell me how to fix the following error? I am not a software guy and have tried multiple things but not figured it out.
H file:
C file:Code:typedef struct mainScreen_t{ uint8_t line; uint8_t position; char value[16]; }mainScreen_t; const mainScreen_t Screen1 = {0, 10, {"GPS"}}; const mainScreen_t Screen2 = {1, 10, {"A/D"}};
Error:Code:mainScreen_t lvl_1[LCD_MAIN_MENUS] = {Screen1, Screen2};
Code:"../main.c", line 41: error #28: expression must have a constant value