[Simu] THR warning was not working
This commit is contained in:
+3
-2
@@ -844,9 +844,10 @@ void checkTHR()
|
|||||||
|
|
||||||
int thrchn=(2-(stickMode&1));//stickMode=0123 -> thr=2121
|
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];
|
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
|
getADC_single(); // if thr is down - do not display warning at all
|
||||||
#endif
|
#endif
|
||||||
int16_t v = anaIn(thrchn);
|
int16_t v = anaIn(thrchn);
|
||||||
|
|||||||
Reference in New Issue
Block a user