feat: option to automatically power off radio after inactivity (#3414)

This commit is contained in:
Paul Tapper
2024-08-28 15:31:25 +10:00
committed by GitHub
parent 1852c8c673
commit af9ba9cef7
41 changed files with 1042 additions and 927 deletions
@@ -770,6 +770,16 @@ static SetupLineDef setupLines[] = {
});
}
},
// Pwr Off If Inactive
{
STR_PWR_AUTO_OFF,
[](Window* parent, coord_t x, coord_t y) {
auto edit = new NumberEdit(parent,{x, y, RadioSetupPage::NUM_W, EdgeTxStyles::UI_ELEMENT_HEIGHT}, 0,
255, GET_SET_DEFAULT(g_eeGeneral.pwrOffIfInactive));
edit->setSuffix(" min");
}
},
#endif
#if defined(HAPTIC)
{