Browse Source

Merge branch 'WiringPi:master' into master

pull/128/head
PinkFreud 3 years ago
committed by GitHub
parent
commit
3144bd9d3b
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 6 deletions
  1. +1
    -0
      gpio/Makefile
  2. +2
    -2
      wiringPi/drcNet.c
  3. +0
    -4
      wiringPi/wiringPi.c

+ 1
- 0
gpio/Makefile View File

@@ -72,6 +72,7 @@ tags: $(SRC)
.PHONY: install
install: gpio
$Q echo "[Install]"
$Q mkdir -p $(DESTDIR)$(PREFIX)/bin
$Q cp gpio $(DESTDIR)$(PREFIX)/bin
ifneq ($(WIRINGPI_SUID),0)
$Q chown root.root $(DESTDIR)$(PREFIX)/bin/gpio


+ 2
- 2
wiringPi/drcNet.c View File

@@ -76,12 +76,12 @@ static int remoteReadline (int fd, char *buf, int max)

static char *getChallenge (int fd)
{
static char buf [1024] ;
static char buf [512] ;
int num ;

for (;;)
{
if ((num = remoteReadline (fd, buf, 1023)) < 0)
if ((num = remoteReadline (fd, buf, 511)) < 0)
return NULL ;
buf [num] = 0 ;



+ 0
- 4
wiringPi/wiringPi.c View File

@@ -2256,10 +2256,6 @@ int wiringPiSetup (void)
int fd ;
int model, rev, mem, maker, overVolted ;

// It's actually a fatal error to call any of the wiringPiSetup routines more than once,
// (you run out of file handles!) but I'm fed-up with the useless twats who email
// me bleating that there is a bug in my code, so screw-em.

if (wiringPiSetuped)
return 0 ;



Loading…
Cancel
Save