No more REV9E and REVPLUS
This commit is contained in:
@@ -63,7 +63,7 @@ NOINLINE void processFrskyTelemetryData(uint8_t data)
|
||||
}
|
||||
#endif
|
||||
|
||||
#if defined(PCBTARANIS) && defined(REV9E) && !defined(SIMU)
|
||||
#if defined(PCBX9E) && !defined(SIMU)
|
||||
#define BLUETOOTH_BUFFER_LENGTH 20
|
||||
static uint8_t bluetoothBuffer[BLUETOOTH_BUFFER_LENGTH];
|
||||
static uint8_t bluetoothIndex = 0;
|
||||
|
||||
@@ -272,7 +272,7 @@ PACK(struct FrskyTelemetryData {
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if defined(PCBTARANIS) && defined(REVPLUS)
|
||||
#if defined(PCBX9DP) || defined(PCBX9E)
|
||||
#define IS_VALID_XJT_VERSION() (telemetryData.xjtVersion != 0 && telemetryData.xjtVersion != 0xff)
|
||||
#else
|
||||
#define IS_VALID_XJT_VERSION() (1)
|
||||
|
||||
@@ -252,7 +252,7 @@ void processSportPacket(uint8_t * packet)
|
||||
else
|
||||
telemetryData.rssi.set(data);
|
||||
}
|
||||
#if defined(PCBTARANIS) && defined(REVPLUS)
|
||||
#if defined(PCBX9DP) || defined(PCBX9E)
|
||||
else if (id == XJT_VERSION_ID) {
|
||||
telemetryData.xjtVersion = HUB_DATA_U16(packet);
|
||||
if (!IS_VALID_XJT_VERSION()) {
|
||||
|
||||
@@ -141,7 +141,7 @@ void telemetryWakeup()
|
||||
}
|
||||
#endif
|
||||
|
||||
#if defined(PCBTARANIS) && defined(REVPLUS)
|
||||
#if defined(PCBX9DP) || defined(PCBX9E)
|
||||
#define FRSKY_BAD_ANTENNA() (IS_VALID_XJT_VERSION() && telemetryData.swr.value > 0x33)
|
||||
#else
|
||||
#define FRSKY_BAD_ANTENNA() (telemetryData.swr.value > 0x33)
|
||||
|
||||
Reference in New Issue
Block a user