fix: Numerous updates and fixes for HoTT telemetry (#1617)
* transferred respective OpenTX updates to HoTT telemetry * integrated LUA function flushAudio from OpenTx * sensor names moved to “untranslated.h” reverted *.h.txt to original mainline content removed leading "Z" in sensor name defines
This commit is contained in:
@@ -1636,6 +1636,19 @@ static int luaDefaultChannel(lua_State * L)
|
||||
return 1;
|
||||
}
|
||||
|
||||
/*luadoc
|
||||
@function flushAudio()
|
||||
|
||||
flushes audio queue
|
||||
|
||||
@status experimental
|
||||
*/
|
||||
static int luaFlushAudio(lua_State * L)
|
||||
{
|
||||
audioQueue.flush();
|
||||
return 0;
|
||||
}
|
||||
|
||||
/*luadoc
|
||||
@function getRSSI()
|
||||
|
||||
@@ -2371,6 +2384,7 @@ const luaL_Reg opentxLib[] = {
|
||||
{ "playDuration", luaPlayDuration },
|
||||
{ "playTone", luaPlayTone },
|
||||
{ "playHaptic", luaPlayHaptic },
|
||||
{ "flushAudio", luaFlushAudio },
|
||||
#if defined(ENABLE_LUA_POPUP_INPUT)
|
||||
{ "popupInput", luaPopupInput },
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user