Explorar o código

changed the undefined ON and OFF parameters to thedefined constant (#19772)

soggywhale %!s(int64=3) %!d(string=hai) anos
pai
achega
a7febfbb62
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      docs/feature_midi.md

+ 2 - 2
docs/feature_midi.md

@@ -60,9 +60,9 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
     switch (keycode) {
     switch (keycode) {
         case MIDI_CC80:
         case MIDI_CC80:
             if (record->event.pressed) {
             if (record->event.pressed) {
-                midi_send_cc(&midi_device, midi_config.channel, 80, ON);
+                midi_send_cc(&midi_device, midi_config.channel, 80, MIDI_CC_ON);
             } else {
             } else {
-                midi_send_cc(&midi_device, midi_config.channel, 80, OFF);
+                midi_send_cc(&midi_device, midi_config.channel, 80, MIDI_CC_OFF);
             }
             }
             return true;
             return true;
     }
     }