Fixes for TX16S

This commit is contained in:
Raphael Coeffic
2022-03-20 16:22:14 +01:00
parent 74effd7c14
commit 74f19371ae
5 changed files with 26 additions and 23 deletions
+4
View File
@@ -1963,6 +1963,10 @@ static int luaSerialRead(lua_State * L)
int num = luaL_optunsigned(L, 1, 0);
if (!luaRxFifo) {
// TODO:
// - check which serial port has been assigned this function
// - set the receive callback on that serial port
//
luaRxFifo = new Fifo<uint8_t, LUA_FIFO_SIZE>();
if (!luaRxFifo) {
lua_pushlstring(L, "", 0);