From: Michael S. <msb...@me...> - 2018-07-04 21:31:44
|
Does it print the unimplemented control code value? What is it? Is it 15 (kSERDClockMidi, as defined in serial_defs.h)? I wonder what would happen if you just changed the switch/case block to return noErr for that code. Note: The source says that there are 4 types of devices: serial, parallel, pty and midi, and that it returns an openErr if an attempt is made to open a midi device. So I wonder what kind of device it thinks it has. > On Jul 4, 2018, at 2:56 PM, Brent Busby <br...@ke...> wrote: > > There's a long switch/case block "int16 XSERDPort::control" starting at > line 312 of serial_unix.cpp, at least in my git checkout from May 1st > (don't know how often you commit). If nothing in the switch/case block > matches, it ends up defaulting to 'printf("WARNING: SerialControl(): > unimplemented control code %d\n", code);', and that's exactly what I get > echoed to stderr in my terminal when an application tries to use MIDI. |