mirror of
https://github.com/juribeparada/MMDVM_HS.git
synced 2025-12-06 07:12:08 +01:00
Merge branch 'master' into M17
This commit is contained in:
commit
9a3e3704e2
|
|
@ -16,6 +16,17 @@
|
|||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
|
||||
# If we run this on a NanoPi board set the GPIO pins
|
||||
if [ -f /etc/pistar-release ]; then
|
||||
hardware=$(grep -i hardware /etc/pistar-release | awk -F "= " '{print $2}')
|
||||
if [[ ${hardware} == "NanoPi" ]]; then
|
||||
echo 3 > /sys/class/gpio/export
|
||||
echo out > /sys/class/gpio/gpio3/direction
|
||||
echo 1 > /sys/class/gpio/gpio3/value
|
||||
echo 3 > /sys/class/gpio/unexport
|
||||
fi
|
||||
fi
|
||||
|
||||
# Configure latest version
|
||||
FW_VERSION="v1.5.2"
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue