From ad8d88d156eb4feac101eabfc9ddc29c6fa31159 Mon Sep 17 00:00:00 2001 From: 3djc Date: Wed, 17 Feb 2016 17:12:24 +0100 Subject: [PATCH] Remove unecessary code Recent OpenTX version do signal when telemetry data is updated with a blinking *, so there is no need anymore to have that misleading changing number when nothing is actually changing. Signed-off-by: Konstantin Sharlaimov (DigitalEntity) --- src/main/telemetry/smartport.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/main/telemetry/smartport.c b/src/main/telemetry/smartport.c index 5b218e3f4e..290421a063 100644 --- a/src/main/telemetry/smartport.c +++ b/src/main/telemetry/smartport.c @@ -310,7 +310,6 @@ void handleSmartPortTelemetry(void) smartPortIdCnt++; int32_t tmpi; - static uint8_t t1Cnt = 0; switch(id) { #ifdef GPS @@ -400,12 +399,7 @@ void handleSmartPortTelemetry(void) case FSSP_DATAID_T1 : // we send all the flags as decimal digits for easy reading - // the t1Cnt simply allows the telemetry view to show at least some changes - t1Cnt++; - if (t1Cnt >= 4) { - t1Cnt = 1; - } - tmpi = t1Cnt * 10000; // start off with at least one digit so the most significant 0 won't be cut off + tmpi = 10000; // start off with at least one digit so the most significant 0 won't be cut off // the Taranis seems to be able to fit 5 digits on the screen // the Taranis seems to consider this number a signed 16 bit integer