Have tried for a while to figure out.
have a simpel number, ex 1, when add 1 it show 2.
when subtract 1 it show 1 Again, and next 0 , but then it show 32767 instead of -1 why ??
number is declared as signed integer.
have a simpel number, ex 1, when add 1 it show 2.
when subtract 1 it show 1 Again, and next 0 , but then it show 32767 instead of -1 why ??
number is declared as signed integer.
Rich (BB code):
offsetgrad--;
lcd_goto(0x0e);
utoa(offgrad, offsetgrad, 10);
lcd_puts(offgrad);