From 898c34ddbfd67272da1d7ff281dc500479e78869 Mon Sep 17 00:00:00 2001 From: Thomas Jarosch Date: Thu, 19 Apr 2007 09:00:39 +0000 Subject: [PATCH] Cosmetic changes --- examples/Makefile.am | 3 +++ examples/bitbang.c | 3 +-- src/ftdi.c | 3 +++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/examples/Makefile.am b/examples/Makefile.am index a11640a..010f860 100644 --- a/examples/Makefile.am +++ b/examples/Makefile.am @@ -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 diff --git a/examples/bitbang.c b/examples/bitbang.c index 1234852..74251ee 100644 --- a/examples/bitbang.c +++ b/examples/bitbang.c @@ -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; diff --git a/src/ftdi.c b/src/ftdi.c index b7876fa..950e84e 100644 --- a/src/ftdi.c +++ b/src/ftdi.c @@ -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 -- 1.7.1