hasmidi fix

This commit is contained in:
bbond007
2019-01-17 20:55:05 -05:00
parent c4cf5e3687
commit b94ceecad3

View File

@@ -1513,7 +1513,7 @@ void HandleUI(void)
parentstate = MENU_UART1;
struct stat filestat;
int hasmidi = !stat("/dev/midi", &filestat);
int hasmidi = (stat("/dev/midi", &filestat) == 0)?true:false;
int mode = GetUARTMode();
int midilink = GetMidiLinkMode();
int m = (mode != 3 && mode != 4) || hasmidi;