[X9D] P3 fix
This commit is contained in:
+2
-2
@@ -311,7 +311,7 @@ getvalue_t getValue(mixsrc_t i)
|
||||
}
|
||||
#endif
|
||||
|
||||
else if (i <= MIXSRC_LAST_POT+NUM_MOUSE_ANALOGS) {
|
||||
else if (i <= MIXSRC_LAST_POT + NUM_MOUSE_ANALOGS) {
|
||||
return calibratedAnalogs[i - MIXSRC_Rud];
|
||||
}
|
||||
|
||||
@@ -420,7 +420,7 @@ void evalInputs(uint8_t mode)
|
||||
{
|
||||
BeepANACenter anaCenter = 0;
|
||||
|
||||
for (uint8_t i=0; i<NUM_STICKS+NUM_POTS+NUM_SLIDERS; i++) {
|
||||
for (uint8_t i = 0; i < NUM_STICKS + NUM_POTS + NUM_SLIDERS; i++) {
|
||||
// normalization [0..2048] -> [-1024..1024]
|
||||
uint8_t ch = (i < NUM_STICKS ? CONVERT_MODE(i) : i);
|
||||
int16_t v = anaIn(i);
|
||||
|
||||
Reference in New Issue
Block a user