Duplicated code removed

This commit is contained in:
Bertrand Songis
2016-03-19 19:30:37 +01:00
parent 5925e8eae4
commit 74229b808f
-7
View File
@@ -1765,10 +1765,7 @@ void doMixerCalculations()
// handle tick10ms overrun
// correct overflow handling costs a lot of code; happens only each 11 min;
// therefore forget the exact calculation and use only 1 instead; good compromise
#if !defined(CPUARM)
lastTMR = tmr10ms;
#endif
getADC();
@@ -1778,10 +1775,6 @@ void doMixerCalculations()
getSwitchesPosition(!s_mixer_first_run_done);
#if defined(CPUARM)
lastTMR = tmr10ms;
#endif
#if defined(PCBSKY9X) && !defined(REVA) && !defined(SIMU)
Current_analogue = (Current_analogue*31 + s_anaFilt[8] ) >> 5 ;
if (Current_analogue > Current_max)