X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=src%2Fexamples%2Fcpmfg.c;h=68bd5efbcc769d79bc35ecf2c32170aa28b57ca5;hb=486c3a08f84480a620b945ba5cfa97ef1acc9da3;hp=ed8524a5320da55132ce7bf48d5f3406660f09bf;hpb=52dc8977c6ba1a93a2a58c993a9b66ceaaa4d8b5;p=cp210x.git diff --git a/src/examples/cpmfg.c b/src/examples/cpmfg.c index ed8524a..68bd5ef 100644 --- a/src/examples/cpmfg.c +++ b/src/examples/cpmfg.c @@ -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);