Nah, PBP handle it. if 0-50 in a byte variable will return 205 or 206.
But 'duty' is a word and, if it does end up being a 'negative number', it'll be above the 1000 limit set in the IF/THEN above and nothing will happen to 'duty' and the program will appear to go stupid.
Bookmarks