mirror of
https://github.com/gmcn42/mt32-pi-control.git
synced 2026-09-22 18:37:58 +00:00
Timing fix for intelligent MPU401s (Issue #2)
This commit is contained in:
1 parent
bb63181e38
commit
feb25dba56
2 files changed
+7
No files matched your search
Binary file not shown.
@@ -5,6 +5,7 @@
|
|||||||
#include "midi_dev.h"
|
#include "midi_dev.h"
|
||||||
#include "getopt.h"
|
#include "getopt.h"
|
||||||
#include "mpu401.h"
|
#include "mpu401.h"
|
||||||
|
#include "delay.h"
|
||||||
|
|
||||||
static int mpubase = 0x330;
|
static int mpubase = 0x330;
|
||||||
|
|
||||||
@@ -16,6 +17,12 @@ int mididev_init(void) {
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
mpu401_uart(mpubase);
|
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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user