From 5e3c20b25826c858fa8e925f97e554770ecbbfd5 Mon Sep 17 00:00:00 2001 From: Raphael Coeffic Date: Fri, 19 Nov 2021 16:50:13 +0100 Subject: [PATCH] Push some dirty hack to give internal CRSF a higher prio This allows for BF scripts to run on internal CRSF. --- radio/src/lua/api_general.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/radio/src/lua/api_general.cpp b/radio/src/lua/api_general.cpp index f97bd9510..08cdf3d26 100644 --- a/radio/src/lua/api_general.cpp +++ b/radio/src/lua/api_general.cpp @@ -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; }