Quoting Mark Rages : > On Tue, Jan 24, 2012 at 4:27 PM, PICdude wrote: >> Hmmm... still tinkering with C18 and ran into this oddity... >> ... > > How is "S2" declared? If it is an int8_t (aka char) then 125+5 =3D > -126, which is always going to be less than S2_MIN, so S2 will remain > at 90. > "unsigned int", because the full range of values will be 0 to 350. --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .