Rotary encoders in Mixer

This commit is contained in:
bsongis
2012-04-02 19:46:48 +00:00
parent 8c6a2bdada
commit d0cb3bb51c
+1 -1
View File
@@ -647,7 +647,7 @@ void incRotaryEncoder(uint8_t idx, int8_t inc)
{
g_rotenc[idx] += inc;
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 * 8), (int16_t)+1024);
eeDirty(EE_MODEL);
}