|
From: Peter K. <pk...@us...> - 2001-06-19 10:36:45
|
The following file was modified in apps/bluetooth/experimental:
Name Old version New version Comment
---- ----------- ----------- -------
bt_if.c 1.20 1.21=20=20=20=20=20=20=20=20=20=20=20=20
The accompanying log:
Added bt_firmware_info().
The diff of the modified file(s):
--- bt_if.c 2001/06/15 12:36:25 1.20
+++ bt_if.c 2001/06/19 10:36:45 1.21
@@ -155,6 +155,24 @@
}
#endif
=20
+char* bt_firmware_info(void)
+{
+#ifndef BT_USERSTACK
+ int bt_cfd =3D bt_openctrl();
+ static char buffer[80];
+
+ if (bt_cfd < 0 || ioctl(bt_cfd, BTFIRMWAREINFO, buffer) < 0)
+ {
+ perror(__FUNCTION__);
+ return NULL;
+ }
+ close(bt_cfd);
+ return buffer;
+#else
+ return bt_hw_firmware();
+#endif
+}
+
void reset_hw(void)
{
#ifdef __CRIS__
|