Revert part of hrev24647

The baudrate constant for MIDI speed was after all the others in BeOS,
and we have to keep them with the same values for things to work.
Moreover, the constants in SerialPort.h were not changed, so everything
was out of sync and all apps using BSerialPort ended up using the wrong
speed.

Add a comment in termios.h to make sure this doesn't happen again.
This commit is contained in:
Adrien Destugues
2013-12-21 20:25:24 +01:00
parent edba5ea016
commit c516bac9f4
+8 -5
View File
@@ -106,11 +106,14 @@ struct termios {
#define B4800 0x0C
#define B9600 0x0D
#define B19200 0x0E
#define B31250 0x0F /* for MIDI */
#define B38400 0x10
#define B57600 0x11
#define B115200 0x12
#define B230400 0x13
#define B38400 0x0F
#define B57600 0x10
#define B115200 0x11
#define B230400 0x12
#define B31250 0x13 /* for MIDI */
// Yes, this last one is out of order. Don't change it, it would break ABI.
// If you change it anyway, make sure the constants in SerialPort.h are
// matching.
#define CSIZE 0x20 /* character size */
#define CS5 0x00 /* only 7 and 8 bits supported */