Issue 95 fixed (but I still don't know why it works with this fix...)

This commit is contained in:
bsongis
2012-08-20 15:44:51 +00:00
parent 346f4b4c20
commit 96a2f9a32a
+1 -1
View File
@@ -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)