Browse Source

Fix sendRealTime (thanks capricorn-one)

fixes #138
teensy4-core
PaulStoffregen 8 years ago
parent
commit
06c8b9ceab
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      teensy3/usb_midi.h

+ 1
- 2
teensy3/usb_midi.h View File

@@ -126,7 +126,6 @@ class usb_midi_class
usb_midi_send_sysex(data, length);
}
void sendRealTime(uint32_t type) __attribute__((always_inline)) {
uint32_t data = ( (type & 0xFF) | ((type << 8) & 0xFF00) );
switch (type) {
case 0xF8: // Clock
case 0xFA: // Start
@@ -134,7 +133,7 @@ class usb_midi_class
case 0xFB: // Continue
case 0xFE: // ActiveSensing
case 0xFF: // SystemReset
usb_midi_write_packed(data);
usb_midi_write_packed((type << 8) | 0x0F);
break;
default: // Invalid Real Time marker
break;

Loading…
Cancel
Save