summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--software/rhmixxx/rhmixxx.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/software/rhmixxx/rhmixxx.c b/software/rhmixxx/rhmixxx.c
index fd91361..ad89590 100644
--- a/software/rhmixxx/rhmixxx.c
+++ b/software/rhmixxx/rhmixxx.c
@@ -90,9 +90,8 @@ static void process_incoming_midi(void)
note == KEYPAD_MIDI_NOTE_ALL) {
if(cmd == MIDI_COMMAND_NOTE_ON) {
switch(value) {
- case 0: keypad_led_off(note - KEYPAD_MIDI_NOTE_OFFSET); break;
- case 1: keypad_led_on(note - KEYPAD_MIDI_NOTE_OFFSET); break;
- case 2: keypad_led_toggle(note - KEYPAD_MIDI_NOTE_OFFSET); break;
+ case 0: keypad_led_on(note - KEYPAD_MIDI_NOTE_OFFSET); break;
+ case 1: keypad_led_toggle(note - KEYPAD_MIDI_NOTE_OFFSET); break;
default: keypad_led_blink(note, value); break;
}
} else if(cmd == MIDI_COMMAND_NOTE_OFF)
@@ -102,9 +101,8 @@ static void process_incoming_midi(void)
note == GPIO_MIDI_NOTE_ALL_OUTPUTS) {
if(cmd == MIDI_COMMAND_NOTE_ON) {
switch(value) {
- case 0: gpio_out_off(note - GPIO_MIDI_NOTE_OFFSET); break;
- case 1: gpio_out_on(note - GPIO_MIDI_NOTE_OFFSET); break;
- case 2: gpio_out_toggle(note - GPIO_MIDI_NOTE_OFFSET); break;
+ case 0: gpio_out_on(note - GPIO_MIDI_NOTE_OFFSET); break;
+ case 1: gpio_out_toggle(note - GPIO_MIDI_NOTE_OFFSET); break;
}
} else if(cmd == MIDI_COMMAND_NOTE_OFF)
gpio_out_off(note - GPIO_MIDI_NOTE_OFFSET);