Merge pull request #3 from gmcn42/new

Timing fix for intelligent MPU401s (Issue #2)
This commit is contained in:
Andreas Zdziarstek authored and GitHub committed 2021-05-06 22:53:16 +02:00
commit c87879853b
2 files changed
+7

No files matched your search

Binary file not shown.
+7
View File
@@ -5,6 +5,7 @@
#include "midi_dev.h"
#include "getopt.h"
#include "mpu401.h"
#include "delay.h"
static int mpubase = 0x330;
@@ -16,6 +17,12 @@ int mididev_init(void) {
return -1;
}
mpu401_uart(mpubase);
/*
* Wait for 100ms, some intelligent MPU-401s seem to need this.
* (should fix github.com/gmcn42/mt32-pi-control/issues/2)
*/
delay_ms(100);
return 0;
}