[chbot] Synco's reentrant chocolate fish

Volker Kuhlmann list0570 at paradise.net.nz
Sat Jul 23 02:09:10 BST 2011


On Sat 23 Jul 2011 12:37:42 NZST +1200, Col wrote:

> Also my tutors taught me it was bad practice to put loops in ISR's.

Those loops aren't really looping (compare loop variable and setting
thereof in loop body). They iterate once 255/256 of times, and twice for
that 1/256 case (assuming 8bit variables). Clever concise coding.

Volker

-- 
Volker Kuhlmann
http://volker.dnsalias.net/	Please do not CC list postings to me.



More information about the Chchrobotics mailing list