|
From: Mattias A. <mat...@us...> - 2001-08-02 13:00:19
|
The following file was modified in apps/bluetooth/experimental:
Name Old version New version Comment
---- ----------- ----------- -------
bttest.c 1.13 1.14=20=20=20=20=20=20=20=20=20=20=20=20
The accompanying log:
* fixed bug, used wrong file descr when sending data
* removed redundant code
The diff of the modified file(s):
--- bttest.c 2001/08/01 10:28:16 1.13
+++ bttest.c 2001/08/02 12:59:58 1.14
@@ -240,7 +240,15 @@
char dev[20];
sprintf(dev, "/dev/ttyBT%d", line);
btfd =3D open(dev, O_RDWR | O_NOCTTY);
- bt_send(bt_cfd, i, repeat);
+
+ if (btfd > 0)
+ bt_send(btfd, i, repeat);
+ else
+ {
+ perror("bt_send");
+ return -1;
+ }
+=20=20=20=20
close(btfd);
}
else if (sscanf(buf, "setbd %x:%x:%x:%x:%x:%x",
@@ -344,11 +352,6 @@
=20
bt_getinfo(bt_cfd, bd, type);
}
- else if (strncmp(buf, "testcmd", 7) =3D=3D 0)
- {
- bt_testcmd(bt_cfd, buf+7);
- }
-
#ifdef CONFIG_BLUETOOTH_UNPLUG_TEST
else if (strncmp(buf, "upt", 3) =3D=3D 0)
{
|