URL:
  <http://savannah.nongnu.org/bugs/?53279>

                 Summary: Permission denied accessing
/sys/class/gpio/gpioX/direction would leave pin exported
                 Project: AVR Downloader/UploaDEr
            Submitted by: None
            Submitted on: Sat 03 Mar 2018 10:10:16 PM UTC
                Category: None
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
         Originator Name: Michael Cain
        Originator Email: loud.mouth.bragg...@gmail.com
             Open/Closed: Open
                 Release: 6.3
         Discussion Lock: Any
     Programmer hardware: linuxgpio
             Device type: RaspberryPi

    _______________________________________________________

Details:

When using a Raspberry Pi to program an atmega2560 using linuxgpio and you do
not have the permission to access /sys/class/gpio/gpioX/direction it would
leave the gpio pin exported.  The only way to unexport the pin would be to
reboot the Rasbperry Pi.

The problem lies in the function linuxgpio_open, change line 280 from:
if (r < 0)
   return r;

TO:
if (r < 0) {
   linuxgpio_unexport(pin);
   return r;
}




    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?53279>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/


_______________________________________________
avrdude-dev mailing list
avrdude-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/avrdude-dev

Reply via email to