]> oss.titaniummirror.com Git - cp210x.git/blobdiff - src/examples/cpmfg.c
Turn on weak pull-ups in the examples/cpmfg program. These aren't needed for
[cp210x.git] / src / examples / cpmfg.c
index ed8524a5320da55132ce7bf48d5f3406660f09bf..68bd5efbcc769d79bc35ecf2c32170aa28b57ca5 100644 (file)
@@ -113,7 +113,8 @@ void cpSetLeds(int fd)
     config.suspend.mode &= ~0x0300;
     config.reset.latch |= 0x0300;
     config.enhancedFxn |= 0x03;
-    config.enhancedFxn &= ~0x10; /* turn off weak pullups */
+    //config.enhancedFxn &= ~0x10; /* turn off weak pullups */
+    config.enhancedFxn |= 0x10; /* turn on weak pullups */
     if ((ret = ioctl(fd, IOCTL_PORTCONFSET, &config))) {
        fprintf(stderr, "portconfset ioctl failed %d\n", ret);
        exit(1);