Do not allocate memory for LUA Rx fifo from the USB ISR
Rather use explicit allocation when the serial is set as the on-demand method that was used previously.
This commit is contained in:
@@ -148,7 +148,10 @@ static void serialSetCallBacks(int mode, void* ctx, const etx_serial_port_t* por
|
||||
if (getByte) {
|
||||
luaSetGetSerialByte(ctx, getByte);
|
||||
} else if (setRxCb) {
|
||||
luaAllocRxFifo();
|
||||
setRxCb(ctx, luaReceiveData);
|
||||
} else {
|
||||
luaFreeRxFifo();
|
||||
}
|
||||
break;
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user