Make sportTelemetryPush/crossfireTelemetryPush return nil if they detect the wrong telemetry protocol.
This allows us to differentiate between wrong protocol and telemetry buffer not available. For lua scripts supporting both crossfire and smartport this will let us reliably detect the telemetry protocol using these functions.
Include the lua subdirectory only after CMAKE_C_COMPILER has been
set to the cross compiler. Otherwise, cmake will use the build machine
compiler to preprocess dataconstants.h, which breaks on some systems
and can cause problems due to different machine dependent types.
Remove -DSEMIHOSTING from the bootloader CFLAGS unconditionally.
-DSEMIHOSTING is passed to the bootloader by the parent project when
SEMIHOSTING=ON, however the bootloader wouldn't fit on flash with
semihosting enabled.
If we leave the -DSEMIHOSTING flag, we would get a compilation error
on non-horus radios (since -DDEBUG is removed) and a link time error
on horus (since the bootloader won't fit in its allocated flash
region).
* [Simulator][FIFOBufferDevice][FilteredTextBuffer]
* Fix issues with dynamic memory allocation on Linux (closes#6119);
* Fix occasional issue with long lines getting partially repeated in output;
* Fixes filter buffer getting overwhelmed with some very verbose Horus startups (observed on Linux);
* Adjust buffer max. size settings to int type (to match QByteArray size type);
* Re-implement QIODevice bytesAvailable() and canReadLine() for efficiency;
* Remove some unnecessary vars, other minor optimizations, cosmetics.
* [Simulator] Slightly optimize DebugOutput::processBytesReceived() by using QByteArray directly.