diff --git a/urjtag/ChangeLog b/urjtag/ChangeLog index 94979252..08a5f17b 100644 --- a/urjtag/ChangeLog +++ b/urjtag/ChangeLog @@ -1,3 +1,9 @@ +2010-08-24 Mike Frysinger + + * src/tap/cable/gpio.c (gpio_get_value): Need to seek back to the start of + the gpio file after reading the value so we keep getting up-to-date + results as reported by Frans Meulenbroeks. + 2010-08-19 Mike Frysinger * configure.ac, src/tap/cable_list.h, src/tap/cable/generic_usbconn_list.h, diff --git a/urjtag/src/tap/cable/gpio.c b/urjtag/src/tap/cable/gpio.c index 6e4c2c73..efcaec88 100644 --- a/urjtag/src/tap/cable/gpio.c +++ b/urjtag/src/tap/cable/gpio.c @@ -133,6 +133,7 @@ static int gpio_get_value (FILE *fp, unsigned int gpio) int value; ret = fscanf (fp, "%i", &value); + rewind (fp); if (ret != 1) {