Rotary encoders in Mixer
This commit is contained in:
@@ -648,6 +648,7 @@ void incRotaryEncoder(uint8_t idx, int8_t inc)
|
|||||||
g_rotenc[idx] += inc;
|
g_rotenc[idx] += inc;
|
||||||
int16_t *value = &(phaseaddress(getRotaryEncoderFlightPhase(idx))->rotaryEncoders[idx]);
|
int16_t *value = &(phaseaddress(getRotaryEncoderFlightPhase(idx))->rotaryEncoders[idx]);
|
||||||
*value = limit((int16_t)-1024, *value + inc, (int16_t)+1024);
|
*value = limit((int16_t)-1024, *value + inc, (int16_t)+1024);
|
||||||
|
eeDirty(EE_MODEL);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user