]> www.fi.muni.cz Git - bike-lights.git/commit
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)
commitb075b225aa743ebb6ce09ca2d1be42e81a6c9ad8
tree4e1f9ede9400656d63ff76cb8bf6c64646a602a0
parent8650676310d5304199ffe174b45a9a396c9610a7
pwmled.c: save error sum between mode switches

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.
firmware/pwmled.c