1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-24 00:35:18 +03:00

Make companion9x compile with recent changes

This commit is contained in:
bsongis 2012-04-03 08:22:54 +00:00
parent 0a3f3d6c6b
commit d970ddc9b4

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 * 8), (int16_t)+1024);
*value = limit((int16_t)-1024, (int16_t)(*value + (inc * 8)), (int16_t)+1024);
eeDirty(EE_MODEL);
}