Bsongis/xlite trainer modes (#6497)

More trainer modes added on XLite(S) and X9Lite
This commit is contained in:
Bertrand Songis
2019-06-14 21:20:22 +02:00
committed by GitHub
parent c3388dc65e
commit 383e723b96
23 changed files with 157 additions and 238 deletions
+4 -3
View File
@@ -21,7 +21,7 @@
#include "opentx.h"
#include "io/frsky_firmware_update.h"
#if defined(PCBHORUS) || defined(PCBX7) || defined(PCBXLITE) || defined(USEHORUSBT)
#if defined(PCBHORUS) || defined(PCBX7) || defined(PCBXLITE)
#define BLUETOOTH_COMMAND_NAME "AT+NAME"
#define BLUETOOTH_ANSWER_NAME "OK+"
#define BLUETOOTH_COMMAND_BAUD_115200 "AT+BAUD115200"
@@ -75,7 +75,8 @@ char * Bluetooth::readline(bool error_reset)
while (1) {
if (!btRxFifo.pop(byte)) {
#if defined(PCBX9E) && !defined(USEHORUSBT) // X9E BT module can get unresponsive
#if defined(PCBX9E)
// X9E BT module can get unresponsive
TRACE("NO RESPONSE FROM BT MODULE");
#endif
return nullptr;
@@ -290,7 +291,7 @@ void Bluetooth::receiveTrainer()
}
}
#if defined(PCBX9E) && !defined(USEHORUSBT)
#if defined(PCBX9E)
void Bluetooth::wakeup(void)
{
#if !defined(SIMU)