Simple USB-MIDI foot controller
Dependencies: PinDetect USBDevice_STM32F103 mbed-STM32F103C8T6
Diff: main.cpp
- Revision:
- 10:f9a48eedfd59
- Parent:
- 9:d5fa853818dd
- Child:
- 11:ff22140b5119
diff -r d5fa853818dd -r f9a48eedfd59 main.cpp --- a/main.cpp Fri Aug 04 05:55:36 2017 +0200 +++ b/main.cpp Fri Aug 04 06:08:29 2017 +0200 @@ -37,6 +37,10 @@ void handle_sysex(MIDIMessage msg) { uint8_t sw; +#ifndef NDEBUG + serial->printf("MIDI recv: status=%02X data1=%02X data2=%02X length=%d\r\n", + msg.data[1], msg.data[2], msg.data[3], msg.length); +#endif if (msg.data[1] == 0xF0 && msg.data[2] == 0x7D && msg.data[9] == 0xF7) { sw = msg.data[3];