View Single Post
Old 06-04-2009, 06:56 PM   #1536 (permalink)
Master EcoModder
Join Date: Jun 2008
Location: London, Ontario
Posts: 1,096

2k2Prot5 - '02 Mazda Protege5
90 day: 33.82 mpg (US)
Thanks: 0
Thanked 12 Times in 9 Posts
Paul.... never use a while loop that you can get locked into. It could spell disaster. ie, the interrupt keeps dinging and the current keeps flowing, but the throttle never gets sampled and gets "stuck".

I would highly suggest using the uart interrupts instead of polling. I have always hated polling systems in general - especially in communication.
  Reply With Quote