summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-console/io_serial.cpp
Unidiff
Diffstat (limited to 'noncore/apps/opie-console/io_serial.cpp') (more/less context) (show whitespace changes)
-rw-r--r--noncore/apps/opie-console/io_serial.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/noncore/apps/opie-console/io_serial.cpp b/noncore/apps/opie-console/io_serial.cpp
index 929aeff..845f4be 100644
--- a/noncore/apps/opie-console/io_serial.cpp
+++ b/noncore/apps/opie-console/io_serial.cpp
@@ -157,7 +157,7 @@ void IOSerial::errorOccured() {
157} 157}
158 158
159void IOSerial::dataArrived() { 159void IOSerial::dataArrived() {
160 QByteArray array(4096); 160 QByteArray array(4097);
161 161
162 int len = read(m_fd, array.data(), 4096); 162 int len = read(m_fd, array.data(), 4096);
163 if (len == 0) 163 if (len == 0)
@@ -175,3 +175,8 @@ QString IOSerial::identifier() const {
175QString IOSerial::name() const { 175QString IOSerial::name() const {
176 return "RS232 Serial IO Layer"; 176 return "RS232 Serial IO Layer";
177} 177}
178int IOSerial::rawIO()const {
179 int fd = ::open(m_device, O_RDWR );
180
181 return fd;
182};