Browse Source

Fix Wrong text on midi device selector if no device is selected

and add missing function declaration
tags/v0.4.0
ben 7 years ago
parent
commit
b24ebf9fc8
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      src/core/MidiInterface.cpp

+ 6
- 0
src/core/MidiInterface.cpp View File

@@ -150,6 +150,10 @@ struct MidiChoice : ChoiceButton {
}

void step() {
if (midiModule->portId < 0) {
text = "No Device";
return;
}
std::string name = midiModule->getPortName(midiModule->portId);
text = ellipsize(name, 15);
}
@@ -508,6 +512,8 @@ struct MIDICCToCVInterface : MidiIO, Module {

void processMidi(std::vector<unsigned char> msg);

virtual void resetMidi();

virtual json_t *toJson() {
json_t *rootJ = json_object();
addBaseJson(rootJ);


Loading…
Cancel
Save