author | zecke <zecke> | 2002-10-15 10:55:58 (UTC) |
---|---|---|
committer | zecke <zecke> | 2002-10-15 10:55:58 (UTC) |
commit | f2e9de1c8b6d3b2b2e82dec23ebf502c5805f575 (patch) (unidiff) | |
tree | 108efdb1a75a78dd212a69ccad718c2e65ece0bf /noncore/apps/opie-console/io_bt.cpp | |
parent | daae7a75b0e9ccbf1ea4c699c631ad77825e6301 (diff) | |
download | opie-f2e9de1c8b6d3b2b2e82dec23ebf502c5805f575.zip opie-f2e9de1c8b6d3b2b2e82dec23ebf502c5805f575.tar.gz opie-f2e9de1c8b6d3b2b2e82dec23ebf502c5805f575.tar.bz2 |
Remove debugging output
Fix possible crashes in io_bt and io_irda
Diffstat (limited to 'noncore/apps/opie-console/io_bt.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-console/io_bt.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/noncore/apps/opie-console/io_bt.cpp b/noncore/apps/opie-console/io_bt.cpp index 8bff4df..0831faf 100644 --- a/noncore/apps/opie-console/io_bt.cpp +++ b/noncore/apps/opie-console/io_bt.cpp | |||
@@ -27,24 +27,25 @@ bool IOBt::open() { | |||
27 | *m_attach << "hciattach /dev/ttyS2 any 57600"; | 27 | *m_attach << "hciattach /dev/ttyS2 any 57600"; |
28 | 28 | ||
29 | // then start hcid, then rcfomm handling (m_mac) | 29 | // then start hcid, then rcfomm handling (m_mac) |
30 | 30 | ||
31 | connect( m_attach, SIGNAL( processExited( OProcess* ) ), | 31 | connect( m_attach, SIGNAL( processExited( OProcess* ) ), |
32 | this, SLOT( slotExited( OProcess* ) ) ); | 32 | this, SLOT( slotExited( OProcess* ) ) ); |
33 | 33 | ||
34 | if ( m_attach->start() ) { | 34 | if ( m_attach->start() ) { |
35 | IOSerial::open(); | 35 | IOSerial::open(); |
36 | } else { | 36 | } else { |
37 | qWarning("could not attach to device"); | 37 | qWarning("could not attach to device"); |
38 | delete m_attach; | 38 | delete m_attach; |
39 | m_attach = 0; | ||
39 | } | 40 | } |
40 | } | 41 | } |
41 | 42 | ||
42 | void IOBt::reload( const Profile &config ) { | 43 | void IOBt::reload( const Profile &config ) { |
43 | m_device = config.readEntry("Device", BT_DEFAULT_DEVICE); | 44 | m_device = config.readEntry("Device", BT_DEFAULT_DEVICE); |
44 | m_mac = config.readEntry("Mac", BT_DEFAULT_MAC); | 45 | m_mac = config.readEntry("Mac", BT_DEFAULT_MAC); |
45 | m_baud = config.readNumEntry("Baud", BT_DEFAULT_BAUD); | 46 | m_baud = config.readNumEntry("Baud", BT_DEFAULT_BAUD); |
46 | m_parity = config.readNumEntry("Parity", BT_DEFAULT_PARITY); | 47 | m_parity = config.readNumEntry("Parity", BT_DEFAULT_PARITY); |
47 | m_dbits = config.readNumEntry("DataBits", BT_DEFAULT_DBITS); | 48 | m_dbits = config.readNumEntry("DataBits", BT_DEFAULT_DBITS); |
48 | m_sbits = config.readNumEntry("StopBits", BT_DEFAULT_SBITS); | 49 | m_sbits = config.readNumEntry("StopBits", BT_DEFAULT_SBITS); |
49 | m_flow = config.readNumEntry("Flow", BT_DEFAULT_FLOW); | 50 | m_flow = config.readNumEntry("Flow", BT_DEFAULT_FLOW); |
50 | } | 51 | } |