From 6380915e6e8d98e2c933ea6eb8df02fb1b123b97 Mon Sep 17 00:00:00 2001 From: Duncan Wilkie Date: Tue, 18 Jul 2023 17:00:44 -0500 Subject: Somewhat finalized base MIDI; got the minimal MIDI-CI done. --- controller/libs/base_midi.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'controller/libs/base_midi.c') diff --git a/controller/libs/base_midi.c b/controller/libs/base_midi.c index e146ec0..6efd2f3 100644 --- a/controller/libs/base_midi.c +++ b/controller/libs/base_midi.c @@ -1,10 +1,10 @@ // This file is written to be read side-along with the MIDI 1.0 spec. // Note the tables at its very end, with /absolutely no direct allusion in the text/. -#include "midi.h" +#include "base_midi.h" #include #include - +// TODO: startup function to initialize ParseMemory buffer. #ifdef RUNNING_STATUS uint8_t last_status = 0x00; #endif @@ -83,9 +83,11 @@ void sysex(uint16_t manufacturer_id, uint8_t* contents, size_t contents_len) { pfns.uart_write(manufacturer_id >> 8); pfns.uart_write(manufacturer_id & 0x00ff); } else { +#ifdef DEBUG if (manufacturer_id > MAX_NON_UNIVERSAL_ID) { while(true); // Used universal sysex ID. } +#endif pfns.uart_write(manufacturer_id); } -- cgit v1.2.3