summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-console/io_bt.cpp
authorharlekin <harlekin>2002-10-17 14:16:03 (UTC)
committer harlekin <harlekin>2002-10-17 14:16:03 (UTC)
commit6c8ae3c8af454c87f5f467fe17cbdffe4c8f5494 (patch) (unidiff)
treed75fbc71ac5d7ae09ad97aacfcd33e43da664f7a /noncore/apps/opie-console/io_bt.cpp
parente5d66ce2f5939eeae922c4fda9cad084320e647c (diff)
downloadopie-6c8ae3c8af454c87f5f467fe17cbdffe4c8f5494.zip
opie-6c8ae3c8af454c87f5f467fe17cbdffe4c8f5494.tar.gz
opie-6c8ae3c8af454c87f5f467fe17cbdffe4c8f5494.tar.bz2
either device or mac address
Diffstat (limited to 'noncore/apps/opie-console/io_bt.cpp') (more/less context) (show whitespace changes)
-rw-r--r--noncore/apps/opie-console/io_bt.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/noncore/apps/opie-console/io_bt.cpp b/noncore/apps/opie-console/io_bt.cpp
index 0831faf..d71aacc 100644
--- a/noncore/apps/opie-console/io_bt.cpp
+++ b/noncore/apps/opie-console/io_bt.cpp
@@ -19,3 +19,6 @@ void IOBt::close() {
19 // still need error handling 19 // still need error handling
20 if ( m_attach ) {
20 delete m_attach; 21 delete m_attach;
22 m_attach = 0;
23 }
21} 24}
@@ -24,2 +27,7 @@ bool IOBt::open() {
24 27
28 // only set up bt stuff if mac address was set, otherwise use the device set
29 if ( !m_mac.isEmpty() ) {
30
31 // now it should also be checked, if there is a connection to the device with that mac allready
32
25 // hciattach here 33 // hciattach here
@@ -40,2 +48,8 @@ bool IOBt::open() {
40 } 48 }
49 } else {
50 // directly to the normal serial
51 // TODO: look first if the connection really exists. ( is set up )
52
53 IOSerial::open();
54 }
41} 55}