[Simu] THR warning was not working

This commit is contained in:
bsongis
2012-05-11 21:20:16 +00:00
parent 18804873b6
commit d5411a4f87
+3 -2
View File
@@ -844,9 +844,10 @@ void checkTHR()
int thrchn=(2-(stickMode&1));//stickMode=0123 -> thr=2121
#ifdef SIMU
int16_t lowLim = THRCHK_DEADBAND - 1024 ;
#else
int16_t lowLim = THRCHK_DEADBAND + g_eeGeneral.calibMid[thrchn] - g_eeGeneral.calibSpanNeg[thrchn];
#ifndef SIMU
getADC_single(); // if thr is down - do not display warning at all
#endif
int16_t v = anaIn(thrchn);