[Taranis X9E] Bluetooth

- baudrate configured automatically to 115200bauds (factory
reset=9600bauds)
- device name is now "Taranis"
- Telemetry is mirrored
This commit is contained in:
bsongis
2015-07-06 23:55:58 +02:00
parent 7f65075af2
commit a56f75f3d9
9 changed files with 160 additions and 83 deletions
+13
View File
@@ -170,6 +170,19 @@ NOINLINE void processSerialData(uint8_t data)
}
#endif
#if defined(PCBTARANIS) && defined(REV9E)
#define BLUETOOTH_BUFFER_LENGTH 20
static uint8_t bluetoothBuffer[BLUETOOTH_BUFFER_LENGTH];
static uint8_t bluetoothIndex = 0;
bluetoothBuffer[bluetoothIndex++] = data;
if (bluetoothIndex == BLUETOOTH_BUFFER_LENGTH) {
if (bluetoothReady()) {
bluetoothWrite(bluetoothBuffer, BLUETOOTH_BUFFER_LENGTH);
}
bluetoothIndex = 0;
}
#endif
switch (dataState)
{
case STATE_DATA_START:
+3 -3
View File
@@ -511,11 +511,11 @@ void sportFirmwareUpdate(ModuleIndex module, const char *filename)
{
bool result = sportUpdatePowerOn(module);
if (result)
result = sportUpdateReqVersion();
result = sportUpdateReqVersion();
if (result)
result = sportUpdateUploadFile(filename);
result = sportUpdateUploadFile(filename);
if (result)
result = sportUpdateEnd();
result = sportUpdateEnd();
if (result == false) {
POPUP_WARNING("Firmware Update Error");