* Fixes #3964: Added free space check before putting new data into Lua Telemetry Fifo * Copy-paste error * Compilation fix * Another compilation fix
This commit is contained in:
committed by
Bertrand Songis
parent
450430f22e
commit
a332f7a872
@@ -198,7 +198,7 @@ void processCrossfireTelemetryFrame()
|
||||
|
||||
#if defined(LUA)
|
||||
default:
|
||||
if (luaInputTelemetryFifo) {
|
||||
if (luaInputTelemetryFifo && luaInputTelemetryFifo->hasSpace(telemetryRxBufferCount-2) ) {
|
||||
for (uint8_t i=1; i<telemetryRxBufferCount-1; i++) {
|
||||
// destination address and CRC are skipped
|
||||
luaInputTelemetryFifo->push(telemetryRxBuffer[i]);
|
||||
|
||||
Reference in New Issue
Block a user