-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() { | |||
120 | } else { | 120 | } else { |
121 | qWarning(" already opened"); | 121 | qWarning(" already opened"); |
122 | emit error(Refuse, tr("Device is already connected")); | 122 | emit error(Refuse, tr("Device is already connected")); |
123 | m_fd = 0; | 123 | m_fd = 0; |
124 | return FALSE; | 124 | return FALSE; |
125 | } | 125 | } |
126 | } | 126 | } |
127 | 127 | ||
128 | void IOSerial::reload(const Profile &config) { | 128 | void IOSerial::reload(const Profile &config) { |
129 | m_device = config.readEntry("Device", SERIAL_DEFAULT_DEVICE); | 129 | m_device = config.readEntry("Device", SERIAL_DEFAULT_DEVICE); |
130 | qWarning( "Dev" +m_device ); | 130 | qWarning( "Dev" +m_device ); |
131 | qWarning( "Conf:" +config.readEntry("Device") ); | 131 | qWarning( "Conf:" +config.readEntry("Device") ); |
132 | m_baud = config.readNumEntry("Baud", SERIAL_DEFAULT_BAUD); | 132 | m_baud = config.readNumEntry("Speed", SERIAL_DEFAULT_BAUD); |
133 | m_parity = config.readNumEntry("Parity", SERIAL_DEFAULT_PARITY); | 133 | m_parity = config.readNumEntry("Parity", SERIAL_DEFAULT_PARITY); |
134 | m_dbits = config.readNumEntry("DataBits", SERIAL_DEFAULT_DBITS); | 134 | m_dbits = config.readNumEntry("DataBits", SERIAL_DEFAULT_DBITS); |
135 | m_sbits = config.readNumEntry("StopBits", SERIAL_DEFAULT_SBITS); | 135 | m_sbits = config.readNumEntry("StopBits", SERIAL_DEFAULT_SBITS); |
136 | m_flow = config.readNumEntry("Flow", SERIAL_DEFAULT_FLOW); | 136 | m_flow = config.readNumEntry("Flow", SERIAL_DEFAULT_FLOW); |
137 | |||
137 | } | 138 | } |
138 | 139 | ||
139 | int IOSerial::baud(int baud) const { | 140 | int IOSerial::baud(int baud) const { |
140 | switch (baud) { | 141 | switch (baud) { |
141 | case 300: return B300; break; | 142 | case 300: return B300; break; |
142 | case 600: return B600; break; | 143 | case 600: return B600; break; |
143 | case 1200: return B1200; break; | 144 | case 1200: return B1200; break; |
144 | case 2400: return B2400; break; | 145 | case 2400: return B2400; break; |
145 | case 4800: return B4800; break; | 146 | case 4800: return B4800; break; |
146 | case 9600: return B9600; break; | 147 | case 9600: return B9600; break; |
147 | case 19200: return B19200; break; | 148 | case 19200: return B19200; break; |
148 | case 38400: return B38400; break; | 149 | case 38400: return B38400; break; |