Very strange .bss RAM overflow
The overflow error occurs when
unsigned short gradScale;
is defined globally, or rather at the top of the file. It’s not per definition defined with the keyword GLOBAL.
I’ve been programming C before and of course I know it’s my blame but I just can’t find out what it is.