Ver código fonte

Merge branch 'WiringPi:master' into master

pull/128/head
PinkFreud 3 anos atrás
committed by GitHub
pai
commit
3144bd9d3b
Nenhuma chave conhecida encontrada para esta assinatura no banco de dados ID da chave GPG: 4AEE18F83AFDEB23
3 arquivos alterados com 3 adições e 6 exclusões
  1. +1
    -0
      gpio/Makefile
  2. +2
    -2
      wiringPi/drcNet.c
  3. +0
    -4
      wiringPi/wiringPi.c

+ 1
- 0
gpio/Makefile Ver arquivo

@@ -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 Ver arquivo

@@ -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 Ver arquivo

@@ -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 ;



Carregando…
Cancelar
Salvar