Bsongis/xlite trainer modes (#6497)
More trainer modes added on XLite(S) and X9Lite
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user