mirror of
https://github.com/pascallanger/DIY-Multiprotocol-TX-Module.git
synced 2025-02-04 18:48:11 +00:00
Fix compiler errors when telemetry is disabled (#474)
This commit is contained in:
parent
e53f723fdb
commit
b4421306c0
@ -142,18 +142,20 @@ static void __attribute__((unused)) OMP_initialize_txid()
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
static void __attribute__((unused)) OMP_Send_Telemetry(uint8_t v)
|
#ifdef OMP_HUB_TELEMETRY
|
||||||
{
|
static void __attribute__((unused)) OMP_Send_Telemetry(uint8_t v)
|
||||||
v_lipo1=v;
|
|
||||||
telemetry_counter++; //LQI
|
|
||||||
telemetry_link=1;
|
|
||||||
if(telemetry_lost)
|
|
||||||
{
|
{
|
||||||
telemetry_lost = 0;
|
v_lipo1=v;
|
||||||
packet_count = 100;
|
telemetry_counter++; //LQI
|
||||||
telemetry_counter = 100;
|
telemetry_link=1;
|
||||||
|
if(telemetry_lost)
|
||||||
|
{
|
||||||
|
telemetry_lost = 0;
|
||||||
|
packet_count = 100;
|
||||||
|
telemetry_counter = 100;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
#endif
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
OMP_BIND = 0x00,
|
OMP_BIND = 0x00,
|
||||||
|
@ -344,6 +344,7 @@
|
|||||||
#undef OMP_HUB_TELEMETRY
|
#undef OMP_HUB_TELEMETRY
|
||||||
#undef RLINK_HUB_TELEMETRY
|
#undef RLINK_HUB_TELEMETRY
|
||||||
#undef DSM_RX_CYRF6936_INO
|
#undef DSM_RX_CYRF6936_INO
|
||||||
|
#undef DSM_FWD_PGM
|
||||||
#else
|
#else
|
||||||
#if defined(MULTI_TELEMETRY) && defined(MULTI_STATUS)
|
#if defined(MULTI_TELEMETRY) && defined(MULTI_STATUS)
|
||||||
#error You should choose either MULTI_TELEMETRY or MULTI_STATUS but not both.
|
#error You should choose either MULTI_TELEMETRY or MULTI_STATUS but not both.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user