]> git.tdb.fi Git - model-railway-devices.git/commit
Rewrite ADC code to cause less timing interference
authorMikko Rasa <tdb@tdb.fi>
Mon, 21 Oct 2013 23:15:31 +0000 (02:15 +0300)
committerMikko Rasa <tdb@tdb.fi>
Mon, 21 Oct 2013 23:15:31 +0000 (02:15 +0300)
commit0ea90da32943b1fae28a3e872f0a9a41b75de4ae
tree8918b06da217b31185e64fdb0e0dd2a36c7ff6a7
parentb47b38e9dd282c5f8fb1ded25ade805e64d0cf1a
Rewrite ADC code to cause less timing interference

Doing divisions in ISR is bad, mkay?  The new code uses a different method
which avoids divisions altogether and is much more accurate too.
arducontrol/monitor.c