Adding new serial baud rate


I’m trying to interface to a midi chip with oF and I’ve run into a bit of a snag. I need to establish a serial connection at 31250 baud. I got the error message “cannot set baud setting 31250…” and I noticed that the ofSerial class doesn’t actually have 31250 baud defined under the midi::setup(string portName, int baud) method. I think that’s where my problem lies.

What’s more, termios doesn’t even define that particular rate.

Is there another way to get this working?