tx16s aux fixes

This commit is contained in:
3djc
2020-05-15 21:11:05 +02:00
parent 0609cdb2d3
commit 318e4dd516
6 changed files with 45 additions and 9 deletions
+1 -1
View File
@@ -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) {