Slight change to the gpio program to fix SPI buffer size when loading

the module.
Typo in gpio man page
Bug fixed in board revision detection (which would never happen
anyway, however)
This commit is contained in:
Gordon Henderson
2013-02-07 21:53:49 +00:00
parent 4c8862eac9
commit 98bcb20d93
5 changed files with 15 additions and 120 deletions

View File

@@ -42,7 +42,7 @@ extern int wiringPiDebug ;
# define FALSE (1==2)
#endif
#define VERSION "1.11"
#define VERSION "1.12"
static int wpMode ;
@@ -152,7 +152,7 @@ static void doLoad (int argc, char *argv [])
file1 = "/dev/spidev0.0" ;
file2 = "/dev/spidev0.1" ;
if (argc == 4)
sprintf (args1, " bufsize=%d", atoi (argv [3]) * 1024) ;
sprintf (args1, " bufsiz=%d", atoi (argv [3]) * 1024) ;
else if (argc > 4)
_doLoadUsage (argv) ;
}