Rotary encoders in Mixer

This commit is contained in:
bsongis
2012-04-02 19:45:31 +00:00
parent d311818604
commit 8c6a2bdada
+1
View File
@@ -648,6 +648,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);
eeDirty(EE_MODEL);
}
#endif