altosui: Pull out BlueTooth support
[fw/altos] / altosui / libaltos / libaltos.c
index c5bcf90070682a6f1974300ef916eeef941fc508..b00a7704bbbc7e2bf5f00b4b073367ba6044f463 100644 (file)
@@ -582,6 +582,7 @@ altos_list_finish(struct altos_list *usbdevs)
        free(usbdevs);
 }
 
+#if HAS_BLUETOOTH
 struct altos_bt_list {
        inquiry_info    *ii;
        int             sock;
@@ -698,7 +699,7 @@ altos_bt_open(struct altos_bt_device *device)
                perror("connect");
                goto no_link;
        }
-       sleep(2);
+       sleep(1);
 
 #ifdef USE_POLL
        pipe(file->pipe);
@@ -713,6 +714,7 @@ no_sock:
 no_file:
        return NULL;
 }
+#endif /* HAS_BLUETOOTH */
 
 #endif