mirror of
https://github.com/pascallanger/DIY-Multiprotocol-TX-Module.git
synced 2025-02-04 18:38:13 +00:00
Bayang telemetry: remove startup warning
This commit is contained in:
parent
87de5b5305
commit
46e255bccc
@ -155,7 +155,8 @@ static void __attribute__((unused)) check_rx(void)
|
|||||||
//uint8_t flags = packet[3] >> 3;
|
//uint8_t flags = packet[3] >> 3;
|
||||||
// battery low: flags & 1
|
// battery low: flags & 1
|
||||||
telemetry_counter++;
|
telemetry_counter++;
|
||||||
telemetry_link=1;
|
if(telemetry_lost==0)
|
||||||
|
telemetry_link=1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -199,6 +200,7 @@ uint16_t BAYANG_callback()
|
|||||||
TX_RSSI = telemetry_counter;
|
TX_RSSI = telemetry_counter;
|
||||||
telemetry_counter = 0;
|
telemetry_counter = 0;
|
||||||
state = 0;
|
state = 0;
|
||||||
|
telemetry_lost=0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (packet_count > 1)
|
if (packet_count > 1)
|
||||||
@ -251,6 +253,7 @@ uint16_t initBAYANG(void)
|
|||||||
packet_count=0;
|
packet_count=0;
|
||||||
#ifdef BAYANG_HUB_TELEMETRY
|
#ifdef BAYANG_HUB_TELEMETRY
|
||||||
init_hub_telemetry();
|
init_hub_telemetry();
|
||||||
|
telemetry_lost=1; // do not send telemetry to TX right away until we have a TX_RSSI value to prevent warning message...
|
||||||
#endif
|
#endif
|
||||||
return BAYANG_INITIAL_WAIT+BAYANG_PACKET_PERIOD;
|
return BAYANG_INITIAL_WAIT+BAYANG_PACKET_PERIOD;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user