Cosmetic changes
authorThomas Jarosch <opensource@intra2net.com>
Thu, 19 Apr 2007 09:00:39 +0000 (09:00 +0000)
committerThomas Jarosch <opensource@intra2net.com>
Thu, 19 Apr 2007 09:00:39 +0000 (09:00 +0000)
examples/Makefile.am
examples/bitbang.c
src/ftdi.c

index a11640a..010f860 100644 (file)
@@ -7,6 +7,9 @@ bin_PROGRAMS = simple \
        bitbang2      \
        bitbang_ft2232
 
+# Don't install the example files
+AM_LDFLAGS = -no-install
+
 simple_SOURCES = simple.c
 bitbang_SOURCES = bitbang.c
 bitbang2_SOURCES = bitbang2.c
index 1234852..74251ee 100644 (file)
@@ -8,6 +8,7 @@ int main(int argc, char **argv)
 {
     struct ftdi_context ftdic;
     int f,i;
+    char buf[1];
 
     ftdi_init(&ftdic);
 
@@ -23,8 +24,6 @@ int main(int argc, char **argv)
     printf("enabling bitbang mode\n");
     ftdi_enable_bitbang(&ftdic, 0xFF);
 
-    char buf[1];
-
     sleep(3);
 
     buf[0] = 0x0;
index b7876fa..950e84e 100644 (file)
@@ -201,6 +201,9 @@ void ftdi_list_free(struct ftdi_device_list **devlist)
     The parameters manufacturer, description and serial may be NULL
     or pointer to buffers to store the fetched strings.
 
+    \note Use this function only in combination with ftdi_usb_find_all()
+          as it closes the internal "usb_dev" after use.
+
     \param ftdi pointer to ftdi_context
     \param dev libusb usb_dev to use
     \param manufacturer Store manufacturer string here if not NULL