From edc8c88062ae6eebbf82513bf47a8adb5fba35b7 Mon Sep 17 00:00:00 2001 From: ts-korhonen Date: Fri, 7 Jan 2022 23:36:25 +0200 Subject: [PATCH] Properly UART-mode detection on input sysex messages --- src/sound/snd_mpu401.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sound/snd_mpu401.c b/src/sound/snd_mpu401.c index 5ada36829..12e92b905 100644 --- a/src/sound/snd_mpu401.c +++ b/src/sound/snd_mpu401.c @@ -1388,7 +1388,7 @@ MPU401_InputSysex(void *p, uint8_t *buffer, uint32_t len, int abort) #ifdef DOSBOX_CODE if (mpu->mode == M_UART) { #else - if (!mpu->intelligent && mpu->mode == M_UART) { + if (!mpu->intelligent || mpu->mode == M_UART) { #endif /* UART mode input. */ for (i = 0; i < len; i++)