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