From: Jan "Yenya" Kasprzak Date: Fri, 7 Dec 2012 21:03:49 +0000 (+0100) Subject: pwmled.c: save error sum between mode switches X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=b075b225aa743ebb6ce09ca2d1be42e81a6c9ad8;hp=b075b225aa743ebb6ce09ca2d1be42e81a6c9ad8;p=bike-lights.git 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. ---