facchinm / avrdude

mainline avrdude imported from svn://svn.savannah.nongnu.org/avrdude/trunk
GNU General Public License v2.0
32 stars 14 forks source link

If a file open in linuxspi_gpio_op_wr fails, retry after a delay #2

Closed per1234 closed 6 years ago

per1234 commented 6 years ago

Setting the reset pin direction immediately after export doesn't allow enough time for the udev rule to give access rights to the gpio user group. This causes avrdude commands run as non-root to fail:

avrdude: linuxspi_gpio_op_wr(): Unable to open file /sys/class/gpio/gpio25/direction

This change has been accepted by the author of the linuxspi programmer code: https://github.com/kcuzner/avrdude/pull/17