From a8f99b1b61515528ffc18ee5eab5d0bbee1377ab Mon Sep 17 00:00:00 2001 From: "bsongis@gmail.com" Date: Fri, 31 May 2013 20:23:06 +0000 Subject: [PATCH] Issue 43 fixed. Who wants to test? I didn't do it myself! Thanks in advance! --- src/maths.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/maths.cpp b/src/maths.cpp index f4e5b67c1..aeeb69cda 100644 --- a/src/maths.cpp +++ b/src/maths.cpp @@ -44,7 +44,10 @@ uint16_t getChannelRatio(uint8_t channel) lcdint_t applyChannelRatio(uint8_t channel, lcdint_t val) { - return ((int32_t)val+g_model.frsky.channels[channel].offset) * getChannelRatio(channel) * 2 / 51; + if (TELEMETRY_STREAMING()) + return ((int32_t)val+g_model.frsky.channels[channel].offset) * getChannelRatio(channel) * 2 / 51; + else + return 0; } #endif