1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-15 20:35:17 +03:00

Bsongis/adc rtc temperature (#6537)

RTC voltage + CPU temperature + RTC voltage alarm (thanks @schwabe)
This commit is contained in:
Bertrand Songis 2019-07-03 07:58:32 +02:00 committed by GitHub
parent 6ba4b84a45
commit 3a0960c1e3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
49 changed files with 568 additions and 447 deletions

View file

@ -1220,7 +1220,7 @@ Get stick that is assigned to a channel. See Default Channel Order in General Se
static int luaDefaultStick(lua_State * L)
{
uint8_t channel = luaL_checkinteger(L, 1);
lua_pushinteger(L, channel_order(channel+1)-1);
lua_pushinteger(L, channelOrder(channel+1)-1);
return 1;
}
@ -1308,7 +1308,7 @@ static int luaDefaultChannel(lua_State * L)
{
uint8_t stick = luaL_checkinteger(L, 1);
for (int i=1; i<=4; i++) {
int tmp = channel_order(i) - 1;
int tmp = channelOrder(i) - 1;
if (tmp == stick) {
lua_pushinteger(L, i-1);
return 1;