Skip to content

Commit

Permalink
Adds page for version
Browse files Browse the repository at this point in the history
  • Loading branch information
Quixotic7 committed Mar 3, 2024
1 parent d6d25f6 commit 6863e49
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion OMX-27-firmware/src/modes/omx_mode_midi_keyboard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ enum MIKeyModePage {
MIPAGE_OUTCC,
MIPAGE_POTSANDMACROS,
MIPAGE_SCALES,
MIPAGE_CFG
MIPAGE_CFG,
MIPAGE_VERSION
};

OmxModeMidiKeyboard::OmxModeMidiKeyboard()
Expand All @@ -34,6 +35,7 @@ OmxModeMidiKeyboard::OmxModeMidiKeyboard()
params.addPage(4); // PotBank, Thru, Macro, Macro Channel
params.addPage(4); // Root, Scale, Lock Scale Notes, Group notes.
params.addPage(4); // Pot CC CFG
params.addPage(4); // MIPAGE_VERSION

// subModeMidiFx.setNoteOutputFunc(&OmxModeMidiKeyboard::onNotePostFXForwarder, this);

Expand Down Expand Up @@ -1134,6 +1136,13 @@ void OmxModeMidiKeyboard::onDisplayUpdate()
{ // DISPLAY
if (!encoderConfig.enc_edit)
{
if (params.getSelPage() == MIPAGE_VERSION)
{
tempString = "v" + String(MAJOR_VERSION) + "." + String(MINOR_VERSION) + "." + String(POINT_VERSION);
omxDisp.dispGenericModeLabel(tempString.c_str(), params.getNumPages(), params.getSelPage());
return;
}

if (params.getSelPage() == MIPAGE_OUTMIDI)
{
omxDisp.clearLegends();
Expand Down

0 comments on commit 6863e49

Please sign in to comment.