]> www.fi.muni.cz Git - bike-lights.git/commitdiff
pwmled.c: save error sum between mode switches
authorJan "Yenya" Kasprzak <kas@fi.muni.cz>
Fri, 7 Dec 2012 21:03:49 +0000 (22:03 +0100)
committerJan "Yenya" Kasprzak <kas@fi.muni.cz>
Fri, 7 Dec 2012 21:03:49 +0000 (22:03 +0100)
otherwise it leads to instability when during short blink the error
sum does not manage to increase the stride.

Also, use 32-bit ints to simplify the code and save some branches.


No differences found