-rw-r--r-- | noncore/net/opietooth/applet/bluezapplet.cpp | 16 |
1 files changed, 14 insertions, 2 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 @@ -36,4 +36,6 @@ #include <qpe/config.h> +#include <opie/odevice.h> + #include <qpoint.h> #include <qpainter.h> @@ -47,4 +49,6 @@ #include <device.h> +using namespace Opie; + namespace OpieTooth { @@ -83,5 +87,13 @@ namespace OpieTooth { 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) { @@ -118,6 +130,6 @@ 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); if (bluezDiscoveryActive) { |