mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-19 22:35:19 +03:00
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) <konstantin.sharlaimov@gmail.com>
This commit is contained in:
parent
591c8870cd
commit
ad8d88d156
1 changed files with 1 additions and 7 deletions
|
@ -310,7 +310,6 @@ void handleSmartPortTelemetry(void)
|
||||||
smartPortIdCnt++;
|
smartPortIdCnt++;
|
||||||
|
|
||||||
int32_t tmpi;
|
int32_t tmpi;
|
||||||
static uint8_t t1Cnt = 0;
|
|
||||||
|
|
||||||
switch(id) {
|
switch(id) {
|
||||||
#ifdef GPS
|
#ifdef GPS
|
||||||
|
@ -400,12 +399,7 @@ void handleSmartPortTelemetry(void)
|
||||||
case FSSP_DATAID_T1 :
|
case FSSP_DATAID_T1 :
|
||||||
// we send all the flags as decimal digits for easy reading
|
// we send all the flags as decimal digits for easy reading
|
||||||
|
|
||||||
// the t1Cnt simply allows the telemetry view to show at least some changes
|
tmpi = 10000; // start off with at least one digit so the most significant 0 won't be cut off
|
||||||
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
|
|
||||||
// the Taranis seems to be able to fit 5 digits on the screen
|
// 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
|
// the Taranis seems to consider this number a signed 16 bit integer
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue