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:
parent
6ba4b84a45
commit
3a0960c1e3
49 changed files with 568 additions and 447 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue