libftdi-git Archives

Subject: A library to talk to FTDI chips branch, master, updated. v1.5-28-gd2c44d2

From: libftdi-git@xxxxxxxxxxxxxxxxxxxxxxx
To: libftdi-git@xxxxxxxxxxxxxxxxxxxxxxx
Date: Fri, 1 Sep 2023 18:09:45 +0200 (CEST)
The branch, master has been updated
       via  d2c44d28fec89b22cb27e61d402087d229282a2a (commit)
      from  7828006e4d0fd4fd72b77151045aaa61c053ffc3 (commit)


- Log -----------------------------------------------------------------
commit d2c44d28fec89b22cb27e61d402087d229282a2a
Author: Yegor Yefremov <yegorslists@xxxxxxxxxxxxxx>
Date:   Thu Aug 31 09:07:51 2023 +0200

    examples/eeprom.c: use AUTO_DETACH_REATACH_SIO_MODULE
    
    This way, the device's state remains unchanged after the
    eeprom invocation.
    
    Bonus: remove trailing white spaces.

-----------------------------------------------------------------------

Summary of changes:
 examples/eeprom.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/examples/eeprom.c b/examples/eeprom.c
index 45f5dff..3d03ac3 100644
--- a/examples/eeprom.c
+++ b/examples/eeprom.c
@@ -90,6 +90,8 @@ int main(int argc, char **argv)
         return EXIT_FAILURE;
     }
 
+    ftdi->module_detach_mode = AUTO_DETACH_REATACH_SIO_MODULE;
+
     while ((i = getopt(argc, argv, "d::ev:p:l:P:S:w")) != -1)
     {
         switch (i)
@@ -200,7 +202,7 @@ int main(int argc, char **argv)
             fprintf(stderr, "\n");
             fprintf(stderr, "unable to open ftdi device: %d (%s)\n",
                     f, ftdi_get_error_string(ftdi));
-            
+
             retval = -1;
             goto done;
         }


hooks/post-receive
-- 
A library to talk to FTDI chips

--
libftdi-git - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi-git+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx   

Current Thread
  • A library to talk to FTDI chips branch, master, updated. v1.5-28-gd2c44d2, libftdi-git <=