Menu option to set midibeam power level

This commit is contained in:
John Stäck 2019-07-20 09:45:40 +02:00
parent 407683bbc3
commit 66b782da16
5 changed files with 44 additions and 0 deletions

View file

@ -501,11 +501,22 @@ const MenuEntrySub specialKeyMenu = {
, nullptr
};
const MenuEntrySub wlPowerMenu = {
MenuType::ESub, "WL POWER", "WL POWER", &wlPower, 0, 3, MenuEntryFlags::ENone,
[](SubMenuRef __unused, char* out, const char** __unused unit) {
numToString(-6*wlPower, out, true);
},
[](SubMenuRef __unused) { sendWLPower(wlPower); }
, nullptr
};
const MenuEntry* extrasMenuEntries[] = {
(MenuEntry*)&legacyPBMenu,
(MenuEntry*)&legacyBRMenu,
(MenuEntry*)&gateOpenMenu,
(MenuEntry*)&specialKeyMenu,
(MenuEntry*)&wlPowerMenu,
};
const MenuPage extrasMenuPage = {