Coding question? Following yields error, not sure how to fix?
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:
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"}};
C file:
Code:
mainScreen_t lvl_1[LCD_MAIN_MENUS] = {Screen1, Screen2};
Error:
Code:
"../main.c", line 41: error #28: expression must have a constant value