Преглед на файлове

Merge branch 'WiringPi:master' into master

pull/128/head
PinkFreud преди 3 години
committed by GitHub
родител
ревизия
3144bd9d3b
No known key found for this signature in database GPG ключ ID: 4AEE18F83AFDEB23
променени са 3 файла, в които са добавени 3 реда и са изтрити 6 реда
  1. +1
    -0
      gpio/Makefile
  2. +2
    -2
      wiringPi/drcNet.c
  3. +0
    -4
      wiringPi/wiringPi.c

+ 1
- 0
gpio/Makefile Целия файл

@@ -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 Целия файл

@@ -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 Целия файл

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



Зареждане…
Отказ
Запис