[simulation] Fix reported multi-position switch output being outside of normal range due to SIMU exception in mixer.cpp.
This commit is contained in:
+1
-1
@@ -428,10 +428,10 @@ void evalInputs(uint8_t mode)
|
||||
uint8_t ch = (i < NUM_STICKS ? CONVERT_MODE(i) : i);
|
||||
int16_t v = anaIn(i);
|
||||
|
||||
#if !defined(SIMU)
|
||||
if (IS_POT_MULTIPOS(i)) {
|
||||
v -= RESX;
|
||||
}
|
||||
#if !defined(SIMU)
|
||||
else {
|
||||
CalibData * calib = &g_eeGeneral.calib[i];
|
||||
v -= calib->mid;
|
||||
|
||||
Reference in New Issue
Block a user