Skip to content

Commit

Permalink
Remove Init Rate RX lua config item
Browse files Browse the repository at this point in the history
  • Loading branch information
CapnBry committed Sep 30, 2023
1 parent 19c26e8 commit c148e14
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/lib/LUA/rx_devLUA.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,6 @@ static struct luaItem_selection luaTlmPower = {
};
#endif

static struct luaItem_selection luaRateInitIdx = {
{"Init Rate", CRSF_TEXT_SELECTION},
0, // value
STR_LUA_PACKETRATES,
STR_EMPTYSPACE
};

#if defined(GPIO_PIN_ANT_CTRL)
static struct luaItem_selection luaAntennaMode = {
{"Ant. Mode", CRSF_TEXT_SELECTION},
Expand Down Expand Up @@ -351,10 +344,6 @@ static void registerLuaParameters()
luadevGeneratePowerOpts(&luaTlmPower);
registerLUAParameter(&luaTlmPower, &luaparamSetPower);
#endif
registerLUAParameter(&luaRateInitIdx, [](struct luaPropertiesCommon* item, uint8_t arg) {
uint8_t newRate = RATE_MAX - 1 - arg;
config.SetRateInitialIdx(newRate);
});
registerLUAParameter(&luaLoanModel, [](struct luaPropertiesCommon* item, uint8_t arg){
// Do it when polling for status i.e. going back to idle, because we're going to lose conenction to the TX
if (arg == 6) {
Expand Down Expand Up @@ -407,7 +396,6 @@ static int event()
uint8_t luaPwrVal = (config.GetPower() == PWR_MATCH_TX) ? POWERMGNT::getMaxPower() + 1 : config.GetPower();
setLuaTextSelectionValue(&luaTlmPower, luaPwrVal - POWERMGNT::getMinPower());
#endif
setLuaTextSelectionValue(&luaRateInitIdx, RATE_MAX - 1 - config.GetRateInitialIdx());

#if defined(GPIO_PIN_PWM_OUTPUTS)
if (OPT_HAS_SERVO_OUTPUT)
Expand Down

0 comments on commit c148e14

Please sign in to comment.