]> git.rkrishnan.org Git - pihpsdr.git/commitdiff
small correction
authorDL1YCF <dl1ycf@darc.de>
Thu, 15 Oct 2020 19:29:26 +0000 (21:29 +0200)
committerDL1YCF <dl1ycf@darc.de>
Thu, 15 Oct 2020 19:29:26 +0000 (21:29 +0200)
midi3.c

diff --git a/midi3.c b/midi3.c
index 3baec720cef88da3c34528fcf288e41fbde08b3c..f034404e3517b09041d703cbe390d9674460b51c 100644 (file)
--- a/midi3.c
+++ b/midi3.c
@@ -610,9 +610,9 @@ void DoTheMidi(enum MIDIaction action, enum MIDItype type, int val) {
        case MIDI_ACTION_MEM_RECALL_M3:
        case MIDI_ACTION_MEM_RECALL_M4:
             //
-           // only knob supported
+           // only key supported
             //
-            if (type == MIDI_TYPE_KNOB) {
+            if (type == MIDI_TYPE_KEY) {
                 new = action - MIDI_ACTION_MEM_RECALL_M0,
                g_idle_add(ext_recall_memory_slot, GINT_TO_POINTER(new));
            }
@@ -747,11 +747,11 @@ void DoTheMidi(enum MIDIaction action, enum MIDItype type, int val) {
        case MIDI_ACTION_MEM_STORE_M3:
        case MIDI_ACTION_MEM_STORE_M4:
             //
-           // only knob supported
+           // only key supported
             //
-            if (type == MIDI_TYPE_KNOB) {
+            if (type == MIDI_TYPE_KEY) {
                 new = action - MIDI_ACTION_MEM_STORE_M0;
-               g_idle_add(ext_recall_memory_slot, GINT_TO_POINTER(new));
+               g_idle_add(ext_store_memory_slot, GINT_TO_POINTER(new));
            }
             break;
        /////////////////////////////////////////////////////////// "SWAPRX"