mirror of
https://github.com/opentx/opentx.git
synced 2025-07-26 09:45:21 +03:00
Compilation fix
This commit is contained in:
parent
74f2e8ae5d
commit
a830a968ec
2 changed files with 9 additions and 7 deletions
|
@ -2,7 +2,7 @@
|
||||||
* Copyright (C) OpenTX
|
* Copyright (C) OpenTX
|
||||||
*
|
*
|
||||||
* Based on code named
|
* Based on code named
|
||||||
* th9x - http://code.google.com/p/th9x
|
* th9x - http://code.google.com/p/th9x
|
||||||
* er9x - http://code.google.com/p/er9x
|
* er9x - http://code.google.com/p/er9x
|
||||||
* gruvin9x - http://code.google.com/p/gruvin9x
|
* gruvin9x - http://code.google.com/p/gruvin9x
|
||||||
*
|
*
|
||||||
|
@ -60,7 +60,7 @@ enum EnumKeys
|
||||||
KEY_PLUS = KEY_UP,
|
KEY_PLUS = KEY_UP,
|
||||||
KEY_RIGHT,
|
KEY_RIGHT,
|
||||||
KEY_LEFT,
|
KEY_LEFT,
|
||||||
|
|
||||||
TRM_BASE,
|
TRM_BASE,
|
||||||
TRM_LH_DWN = TRM_BASE,
|
TRM_LH_DWN = TRM_BASE,
|
||||||
TRM_LH_UP,
|
TRM_LH_UP,
|
||||||
|
@ -409,10 +409,7 @@ void telemetryPortInit(uint32_t baudrate, uint8_t mode);
|
||||||
uint32_t telemetryTransmitPending();
|
uint32_t telemetryTransmitPending();
|
||||||
void telemetryTransmitBuffer(const uint8_t * buffer, uint32_t size);
|
void telemetryTransmitBuffer(const uint8_t * buffer, uint32_t size);
|
||||||
void rxPdcUsart( void (*pChProcess)(uint8_t x) );
|
void rxPdcUsart( void (*pChProcess)(uint8_t x) );
|
||||||
inline void sportSendBuffer(const uint8_t * buffer, uint32_t size)
|
void sportSendBuffer(const uint8_t * buffer, uint32_t size);
|
||||||
{
|
|
||||||
telemetryTransmitBuffer(buffer, size);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Second UART driver
|
// Second UART driver
|
||||||
void serial2TelemetryInit(unsigned int protocol);
|
void serial2TelemetryInit(unsigned int protocol);
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
* Copyright (C) OpenTX
|
* Copyright (C) OpenTX
|
||||||
*
|
*
|
||||||
* Based on code named
|
* Based on code named
|
||||||
* th9x - http://code.google.com/p/th9x
|
* th9x - http://code.google.com/p/th9x
|
||||||
* er9x - http://code.google.com/p/er9x
|
* er9x - http://code.google.com/p/er9x
|
||||||
* gruvin9x - http://code.google.com/p/gruvin9x
|
* gruvin9x - http://code.google.com/p/gruvin9x
|
||||||
*
|
*
|
||||||
|
@ -173,6 +173,11 @@ void telemetryPortInit(uint32_t baudrate, uint8_t mode)
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void sportSendBuffer(const uint8_t * buffer, uint32_t size)
|
||||||
|
{
|
||||||
|
telemetryTransmitBuffer(buffer, size);
|
||||||
|
}
|
||||||
|
|
||||||
void telemetryTransmitBuffer(const uint8_t * buffer, uint32_t size)
|
void telemetryTransmitBuffer(const uint8_t * buffer, uint32_t size)
|
||||||
{
|
{
|
||||||
txPdcUsart(buffer, size);
|
txPdcUsart(buffer, size);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue