Quote:
Originally Posted by nathanww
And with the long-int %d--even if this was printing incorrectly, the encoder stopped flag should be changing, right?
|
The long-int printing question is easily fixed. I don't know if it is incorrect as previously written, but typecasting will get rid of all doubt and make sure it works as you think it should.
Code:
printf("encoder1=%d", (int)(encoder1->Get()));