Quote:
|
Originally Posted by misterikkit
I don't think it was a problem with the printf() function. We were trying to cast an int as an unsigned char, in order to be able to properly work with the pwm outputs. The variable pwm02 is #define'd to txdata.rc_pwm02, which is an unsigned char.
|
It wasn't clear from your response if you tried my suggestion or not. I went through similar machinations trying to get a printf to work, and casting within the printf was the only way that would work for me. (BTW, I eventually tried it that way because I noticed that that was the way the default program did it.)