From d970ddc9b45f049e717fb8a7d0bcf3760f26a6b8 Mon Sep 17 00:00:00 2001 From: bsongis Date: Tue, 3 Apr 2012 08:22:54 +0000 Subject: [PATCH] Make companion9x compile with recent changes --- src/open9x.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/open9x.cpp b/src/open9x.cpp index 239b42ef2..c1fb9486b 100644 --- a/src/open9x.cpp +++ b/src/open9x.cpp @@ -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); }