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:
Michael
2022-03-18 10:06:53 +10:00
committed by GitHub
parent 148262643b
commit 45731d8577
3 changed files with 721 additions and 342 deletions
+14
View File
@@ -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