summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/opietooth/applet/bluezapplet.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/noncore/net/opietooth/applet/bluezapplet.cpp b/noncore/net/opietooth/applet/bluezapplet.cpp
index b662ff7..39a9c6e 100644
--- a/noncore/net/opietooth/applet/bluezapplet.cpp
+++ b/noncore/net/opietooth/applet/bluezapplet.cpp
@@ -57,21 +57,25 @@ namespace OpieTooth {
57 startTimer(5000); 57 startTimer(5000);
58 timerEvent(NULL); 58 timerEvent(NULL);
59 } 59 }
60 60
61 BluezApplet::~BluezApplet() { 61 BluezApplet::~BluezApplet() {
62 } 62 }
63 63
64 int BluezApplet::checkBluezStatus() { 64 int BluezApplet::checkBluezStatus() {
65 if (btDevice->isLoaded() ) { 65 if (btDevice) {
66 return 1; 66 if (btDevice->isLoaded() ) {
67 return 1;
67 } else { 68 } else {
68 return 0; 69 return 0;
69 } 70 }
71 } else {
72 return 0;
73 }
70 } 74 }
71 75
72 int BluezApplet::setBluezStatus(int c) { 76 int BluezApplet::setBluezStatus(int c) {
73 77
74 if (c == 1) { 78 if (c == 1) {
75 btDevice = new Device("/dev/ttySB0", "scr" ); 79 btDevice = new Device("/dev/ttySB0", "scr" );
76 // system("hciattach /dev/ttySB0 csr"); 80 // system("hciattach /dev/ttySB0 csr");
77 //system("hcid"); 81 //system("hcid");