summaryrefslogtreecommitdiff
path: root/noncore/net/opietooth/applet/bluezapplet.cpp
authorharlekin <harlekin>2003-03-20 18:20:20 (UTC)
committer harlekin <harlekin>2003-03-20 18:20:20 (UTC)
commite8be90134f3d0d79abe55ed10897309a548376eb (patch) (side-by-side diff)
tree0f66457ea3c2748bf4fc46d58e140d20a81f5a4e /noncore/net/opietooth/applet/bluezapplet.cpp
parentcbc495e56737838263e8f4470710e0a4338f5620 (diff)
downloadopie-e8be90134f3d0d79abe55ed10897309a548376eb.zip
opie-e8be90134f3d0d79abe55ed10897309a548376eb.tar.gz
opie-e8be90134f3d0d79abe55ed10897309a548376eb.tar.bz2
added support for 39xx ipaq
Diffstat (limited to 'noncore/net/opietooth/applet/bluezapplet.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/opietooth/applet/bluezapplet.cpp22
1 files changed, 17 insertions, 5 deletions
diff --git a/noncore/net/opietooth/applet/bluezapplet.cpp b/noncore/net/opietooth/applet/bluezapplet.cpp
index f1618ae..39c15ab 100644
--- a/noncore/net/opietooth/applet/bluezapplet.cpp
+++ b/noncore/net/opietooth/applet/bluezapplet.cpp
@@ -37,2 +37,4 @@
+#include <opie/odevice.h>
+
#include <qpoint.h>
@@ -48,2 +50,4 @@
+using namespace Opie;
+
namespace OpieTooth {
@@ -83,6 +87,14 @@ namespace OpieTooth {
- if (c == 1) {
- btDevice = new Device("/dev/ttySB0", "bcsp", "230400" );
+ if ( c == 1 ) {
+ switch ( ODevice::inst()->model() ) {
+ case Model_iPAQ_H39xx:
+ btDevice = new Device( "/dev/tts/1", "bcsp", "921600" );
+ break;
+
+ default:
+ btDevice = new Device( "/dev/ttySB0", "bcsp", "230400" );
+ break;
+ }
} else {
- if (btDevice) {
+ if ( btDevice ) {
delete btDevice;
@@ -119,4 +131,4 @@ namespace OpieTooth {
menu->insertSeparator(6);
- menu->insertItem( tr("Signal strength"), signal, 5);
- menu->insertSeparator(8);
+ //menu->insertItem( tr("Signal strength"), signal, 5);
+ //menu->insertSeparator(8);