mirror of
https://github.com/opentx/opentx.git
synced 2025-07-16 12:55:12 +03:00
tx16s aux fixes
This commit is contained in:
parent
0609cdb2d3
commit
318e4dd516
6 changed files with 45 additions and 9 deletions
|
@ -1634,9 +1634,9 @@ Reads characters from the serial port. The string is allowed to contain any char
|
|||
*/
|
||||
static int luaSerialRead(lua_State * L)
|
||||
{
|
||||
#if defined(LUA) && !defined(CLI)
|
||||
int num = luaL_optunsigned(L, 1, 0);
|
||||
|
||||
#if defined(LUA) && !defined(CLI)
|
||||
if (!luaRxFifo) {
|
||||
luaRxFifo = new Fifo<uint8_t, LUA_FIFO_SIZE>();
|
||||
if (!luaRxFifo) {
|
||||
|
|
|
@ -41,7 +41,7 @@ extern "C" {
|
|||
#endif
|
||||
#endif
|
||||
|
||||
#if !defined(CLI)
|
||||
#if !defined(CLI) || defined(AUX2_SERIAL)
|
||||
#define LUA_FIFO_SIZE 256
|
||||
extern Fifo<uint8_t, LUA_FIFO_SIZE> * luaRxFifo;
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue