From 96a2f9a32ad0d4da0bc8489fefcc6c7d5861e5a5 Mon Sep 17 00:00:00 2001 From: bsongis Date: Mon, 20 Aug 2012 15:44:51 +0000 Subject: [PATCH] Issue 95 fixed (but I still don't know why it works with this fix...) --- src/frsky.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frsky.cpp b/src/frsky.cpp index 01c98ecc1..3d8db237b 100644 --- a/src/frsky.cpp +++ b/src/frsky.cpp @@ -137,7 +137,7 @@ typedef enum { int16_t applyChannelRatio(uint8_t channel, int16_t val) { - return ((int32_t)val+g_model.frsky.channels[channel].offset) * (g_model.frsky.channels[channel].ratio << g_model.frsky.channels[channel].multiplier) * 2 / 51; + return ((int16_t)val+g_model.frsky.channels[channel].offset) * (g_model.frsky.channels[channel].ratio << g_model.frsky.channels[channel].multiplier) * 2 / 51; } void evalVario(int16_t altitude_bp, uint16_t altitude_ap)