No more REV9E and REVPLUS

This commit is contained in:
Bertrand Songis
2016-07-29 14:44:59 +02:00
parent 0f740358f2
commit 51223a5864
60 changed files with 248 additions and 249 deletions
+1 -1
View File
@@ -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;
+1 -1
View File
@@ -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)
+1 -1
View File
@@ -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()) {
+1 -1
View File
@@ -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)