summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorsoggywhale <112708531+soggywhale@users.noreply.github.com>2023-02-08 03:20:42 +0100
committerGitHub <noreply@github.com>2023-02-08 02:20:42 +0000
commita7febfbb62182e72ecc39c5fa9e8bd9ac923f47e (patch)
tree359b01d6e581591be2f5f7232ecde92ba5485a41 /docs
parent5dfaf0a21881c79a1268b354fd9ca9c113bb117e (diff)
changed the undefined ON and OFF parameters to thedefined constant (#19772)
Diffstat (limited to 'docs')
-rw-r--r--docs/feature_midi.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/feature_midi.md b/docs/feature_midi.md
index 1f0809ef14..5df11c4b58 100644
--- a/docs/feature_midi.md
+++ b/docs/feature_midi.md
@@ -60,9 +60,9 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
switch (keycode) {
case MIDI_CC80:
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 {
- midi_send_cc(&midi_device, midi_config.channel, 80, OFF);
+ midi_send_cc(&midi_device, midi_config.channel, 80, MIDI_CC_OFF);
}
return true;
}