author | zecke <zecke> | 2005-11-02 20:11:29 (UTC) |
---|---|---|
committer | zecke <zecke> | 2005-11-02 20:11:29 (UTC) |
commit | 18d6f344e4656e7f77497d345f1480cecd4d2f31 (patch) (unidiff) | |
tree | bf9771459177e2835e1047a6178f11b420bed9e5 | |
parent | 562ff5c89ae1da92172a086afc8c3ffb7eec23bd (diff) | |
download | opie-18d6f344e4656e7f77497d345f1480cecd4d2f31.zip opie-18d6f344e4656e7f77497d345f1480cecd4d2f31.tar.gz opie-18d6f344e4656e7f77497d345f1480cecd4d2f31.tar.bz2 |
Opie Bluetooth Applet:
Start hciattach with the right commands for the Asus MyPal.
Patch is courtsey Pawel Kolodziejski
-rw-r--r-- | noncore/net/opietooth/applet/bluezapplet.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/noncore/net/opietooth/applet/bluezapplet.cpp b/noncore/net/opietooth/applet/bluezapplet.cpp index e1c2341..5676e4f 100644 --- a/noncore/net/opietooth/applet/bluezapplet.cpp +++ b/noncore/net/opietooth/applet/bluezapplet.cpp | |||
@@ -91,48 +91,52 @@ int BluezApplet::position() | |||
91 | bool BluezApplet::checkBluezStatus() { | 91 | bool BluezApplet::checkBluezStatus() { |
92 | if (btDevice) { | 92 | if (btDevice) { |
93 | if (btDevice->isLoaded() ) { | 93 | if (btDevice->isLoaded() ) { |
94 | return true; | 94 | return true; |
95 | } else { | 95 | } else { |
96 | return false; | 96 | return false; |
97 | } | 97 | } |
98 | } else { | 98 | } else { |
99 | return false; | 99 | return false; |
100 | } | 100 | } |
101 | } | 101 | } |
102 | 102 | ||
103 | int BluezApplet::setBluezStatus(int c) { | 103 | int BluezApplet::setBluezStatus(int c) { |
104 | 104 | ||
105 | if ( c == 1 ) { | 105 | if ( c == 1 ) { |
106 | switch ( ODevice::inst()->model() ) { | 106 | switch ( ODevice::inst()->model() ) { |
107 | case Model_iPAQ_H39xx: | 107 | case Model_iPAQ_H39xx: |
108 | btDevice = new Device( "/dev/tts/1", "bcsp", "921600" ); | 108 | btDevice = new Device( "/dev/tts/1", "bcsp", "921600" ); |
109 | break; | 109 | break; |
110 | 110 | ||
111 | case Model_iPAQ_H5xxx: | 111 | case Model_iPAQ_H5xxx: |
112 | btDevice = new Device( "/dev/tts/1", "any", "921600" ); | 112 | btDevice = new Device( "/dev/tts/1", "any", "921600" ); |
113 | break; | 113 | break; |
114 | 114 | ||
115 | case Model_MyPal_716: | ||
116 | btDevice = new Device( "/dev/ttyS1", "bcsp", "921600" ); | ||
117 | break; | ||
118 | |||
115 | default: | 119 | default: |
116 | btDevice = new Device( "/dev/ttySB0", "bcsp", "230400" ); | 120 | btDevice = new Device( "/dev/ttySB0", "bcsp", "230400" ); |
117 | break; | 121 | break; |
118 | } | 122 | } |
119 | } else { | 123 | } else { |
120 | if ( btDevice ) { | 124 | if ( btDevice ) { |
121 | delete btDevice; | 125 | delete btDevice; |
122 | btDevice = 0; | 126 | btDevice = 0; |
123 | } | 127 | } |
124 | } | 128 | } |
125 | return 0; | 129 | return 0; |
126 | } | 130 | } |
127 | 131 | ||
128 | int BluezApplet::checkBluezDiscoveryStatus() { | 132 | int BluezApplet::checkBluezDiscoveryStatus() { |
129 | return bluezDiscoveryActive; | 133 | return bluezDiscoveryActive; |
130 | } | 134 | } |
131 | 135 | ||
132 | int BluezApplet::setBluezDiscoveryStatus(int d) { | 136 | int BluezApplet::setBluezDiscoveryStatus(int d) { |
133 | return bluezDiscoveryActive=d; | 137 | return bluezDiscoveryActive=d; |
134 | } | 138 | } |
135 | 139 | ||
136 | // FIXME mbhaynie | 140 | // FIXME mbhaynie |
137 | // receiver for QCopChannel("QPE/Bluetooth") messages. | 141 | // receiver for QCopChannel("QPE/Bluetooth") messages. |
138 | void BluezApplet::slotMessage( const QCString& str, const QByteArray& ) | 142 | void BluezApplet::slotMessage( const QCString& str, const QByteArray& ) |