More unneeded definitions removed

This commit is contained in:
Bertrand Songis
2019-08-20 18:04:19 +02:00
parent 487a76e8ba
commit 2ce17f3b68
45 changed files with 37 additions and 197 deletions
-2
View File
@@ -100,13 +100,11 @@ bool pushFrskyTelemetryData(uint8_t data)
} // switch
#if defined(TELEMETRY_FRSKY_SPORT)
if (IS_FRSKY_SPORT_PROTOCOL() && telemetryRxBufferCount >= FRSKY_SPORT_PACKET_SIZE) {
// end of frame detected
dataState = STATE_DATA_IDLE;
return true;
}
#endif
return false;
}
+1 -5
View File
@@ -21,11 +21,7 @@
#ifndef _TELEMETRY_H_
#define _TELEMETRY_H_
#if defined(TELEMETRY_FRSKY)
// FrSky Telemetry
#include "frsky.h"
#endif
#include "frsky.h"
#include "crossfire.h"
#if defined(MULTIMODULE)
#include "spektrum.h"
@@ -501,16 +501,12 @@ int setTelemetryValue(TelemetryProtocol protocol, uint16_t id, uint8_t subId, ui
int index = availableTelemetryIndex();
if (index >= 0) {
switch (protocol) {
#if defined(TELEMETRY_FRSKY_SPORT)
case TELEM_PROTO_FRSKY_SPORT:
frskySportSetDefault(index, id, subId, instance);
break;
#endif
#if defined(TELEMETRY_FRSKY)
case TELEM_PROTO_FRSKY_D:
frskyDSetDefault(index, id);
break;
#endif
#if defined(CROSSFIRE)
case TELEM_PROTO_CROSSFIRE:
crossfireSetDefault(index, id, instance);