author | zecke <zecke> | 2002-10-14 20:36:48 (UTC) |
---|---|---|
committer | zecke <zecke> | 2002-10-14 20:36:48 (UTC) |
commit | 8140420efa133ea59310d3f8de721950fd1d13af (patch) (side-by-side diff) | |
tree | 9279c8e786f1a4476b598f112fd0a8541355d1ba | |
parent | 0547ecc794209a0824fd7662e434706ac625dbb2 (diff) | |
download | opie-8140420efa133ea59310d3f8de721950fd1d13af.zip opie-8140420efa133ea59310d3f8de721950fd1d13af.tar.gz opie-8140420efa133ea59310d3f8de721950fd1d13af.tar.bz2 |
the BAud Value is called Speed not baud
-rw-r--r-- | noncore/apps/opie-console/io_serial.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/noncore/apps/opie-console/io_serial.cpp b/noncore/apps/opie-console/io_serial.cpp index 4129d64..03f1b1a 100644 --- a/noncore/apps/opie-console/io_serial.cpp +++ b/noncore/apps/opie-console/io_serial.cpp @@ -120,29 +120,30 @@ bool IOSerial::open() { } else { qWarning(" already opened"); emit error(Refuse, tr("Device is already connected")); m_fd = 0; return FALSE; } } void IOSerial::reload(const Profile &config) { m_device = config.readEntry("Device", SERIAL_DEFAULT_DEVICE); qWarning( "Dev" +m_device ); qWarning( "Conf:" +config.readEntry("Device") ); - m_baud = config.readNumEntry("Baud", SERIAL_DEFAULT_BAUD); + m_baud = config.readNumEntry("Speed", SERIAL_DEFAULT_BAUD); m_parity = config.readNumEntry("Parity", SERIAL_DEFAULT_PARITY); m_dbits = config.readNumEntry("DataBits", SERIAL_DEFAULT_DBITS); m_sbits = config.readNumEntry("StopBits", SERIAL_DEFAULT_SBITS); m_flow = config.readNumEntry("Flow", SERIAL_DEFAULT_FLOW); + } int IOSerial::baud(int baud) const { switch (baud) { case 300: return B300; break; case 600: return B600; break; case 1200: return B1200; break; case 2400: return B2400; break; case 4800: return B4800; break; case 9600: return B9600; break; case 19200: return B19200; break; case 38400: return B38400; break; |