|
From: | anonymous |
Subject: | [avrdude-dev] [bug #53279] Permission denied accessing /sys/class/gpio/gpioX/direction would leave pin exported |
Date: | Sat, 3 Mar 2018 17:10:17 -0500 (EST) |
User-agent: | Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.186 Safari/537.36 |
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: address@hidden 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/
[Prev in Thread] | Current Thread | [Next in Thread] |