From d02d78101c89dcc267bda99b37ef7af54a47d772 Mon Sep 17 00:00:00 2001 From: Bertrand Songis Date: Sun, 16 Feb 2014 10:21:28 +0100 Subject: [PATCH] Issue #182 fixed --- companion/src/eeprominterface.cpp | 4 ++-- radio/src/opentx.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/companion/src/eeprominterface.cpp b/companion/src/eeprominterface.cpp index c687f7563..bb2861cf8 100644 --- a/companion/src/eeprominterface.cpp +++ b/companion/src/eeprominterface.cpp @@ -57,8 +57,8 @@ RawSourceRange RawSource::getRange(bool singleprec) break; case TELEMETRY_SOURCE_TIMER1: case TELEMETRY_SOURCE_TIMER2: - result.step = singleprec ? 3 : 1; - result.max = singleprec ? 765 : 7200; + result.step = singleprec ? 5 : 1; + result.max = singleprec ? 255*5 : 7200; break; case TELEMETRY_SOURCE_RSSI_TX: case TELEMETRY_SOURCE_RSSI_RX: diff --git a/radio/src/opentx.cpp b/radio/src/opentx.cpp index 1d25df940..320421007 100644 --- a/radio/src/opentx.cpp +++ b/radio/src/opentx.cpp @@ -1994,7 +1994,7 @@ getvalue_t convert8bitsTelemValue(uint8_t channel, ls_telemetry_value_t value) switch (channel) { case TELEM_TM1: case TELEM_TM2: - result = value * 3; + result = value * 5; break; #if defined(FRSKY) case TELEM_ALT: