Diffstat (limited to 'noncore/apps/opie-console/io_serial.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-console/io_serial.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/noncore/apps/opie-console/io_serial.cpp b/noncore/apps/opie-console/io_serial.cpp index 03e92dd..ddd4994 100644 --- a/noncore/apps/opie-console/io_serial.cpp +++ b/noncore/apps/opie-console/io_serial.cpp | |||
@@ -163,17 +163,13 @@ void IOSerial::dataArrived() { | |||
163 | 163 | ||
164 | int len = read(m_fd, array.data(), 4096); | 164 | int len = read(m_fd, array.data(), 4096); |
165 | if (len == 0) | 165 | if (len == 0) |
166 | close(); | 166 | close(); |
167 | if (len < 0) | 167 | if (len < 0) |
168 | return; | 168 | return; |
169 | qWarning("got from layer"); | 169 | |
170 | for (int i = 0; i < len; i++ ) { | ||
171 | printf("%c", array[i] ); | ||
172 | } | ||
173 | printf("\n"); | ||
174 | array.resize( len ); | 170 | array.resize( len ); |
175 | emit received(array); | 171 | emit received(array); |
176 | } | 172 | } |
177 | 173 | ||
178 | QString IOSerial::identifier() const { | 174 | QString IOSerial::identifier() const { |
179 | return "serial"; | 175 | return "serial"; |