Browse Source

Bring back my changes

pull/158/head
Jim Parziale 2 years ago
parent
commit
21dd33fcd6
2 changed files with 3 additions and 3 deletions
  1. +2
    -2
      wiringPi/drcNet.c
  2. +1
    -1
      wiringPi/wiringPi.h

+ 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 [512] ;
static char buf [1024] ;
int num ;

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



+ 1
- 1
wiringPi/wiringPi.h View File

@@ -121,7 +121,7 @@
#define PI_MAKER_STADIUM 5

extern const char *piModelNames [21] ;
extern const char *piRevisionNames [16] ;
extern const char *piRevisionNames [21] ;
extern const char *piMakerNames [16] ;
extern const int piMemorySize [ 8] ;



Loading…
Cancel
Save