Optimized some MIDI related stuff

This commit is contained in:
2024-04-02 13:51:17 +03:00
parent a6b0c0f101
commit 4937de026c
2 changed files with 4 additions and 6 deletions

View File

@ -6,7 +6,7 @@
#include <avr/wdt.h>
#include <NeoHWSerial.h>
const char version[5] = "1.1b4";
const char version[5] = "V:1.1";
#define SCREEN_ADDRESS 0x3C
@ -238,10 +238,9 @@ void sendMIDIStop() {
NeoSerial.write(0xFC);
}
void receiveMIDI() {
void receiveMIDI( uint8_t msg, uint8_t status ) {
if (masterClockMode == 2) {
//if(Serial.available() > 0) {
int msg = NeoSerial.read();
//int msg = NeoSerial.read();
if (msg == 0xF8) { //Clock
MIDIClockReceived = true;
} else if (msg == 0xFC) { //stop
@ -249,7 +248,6 @@ void receiveMIDI() {
} else if (msg == 0xFA || msg == 0xFB) { //start and continue
isPlaying = true;
}
//}
}
}