Push some dirty hack to give internal CRSF a higher prio

This allows for BF scripts to run on internal CRSF.
This commit is contained in:
Raphael Coeffic
2021-11-21 11:18:35 +01:00
committed by Raphael Coeffic
parent 9c50255905
commit 5e3c20b258
+2 -1
View File
@@ -494,7 +494,8 @@ When called without parameters, it will only return the status of the output buf
static int luaSportTelemetryPush(lua_State * L)
{
if (!IS_FRSKY_SPORT_PROTOCOL()) {
// dirty hack until 2 simultanous protocols are supported
if (isModuleCrossfire(INTERNAL_MODULE) || !IS_FRSKY_SPORT_PROTOCOL()) {
lua_pushnil(L);
return 1;
}