Browse Source

Merge pull request #213 from WiringPi/maint_typos

example
mstroh76 7 months ago
committed by GitHub
parent
commit
791cb58cf8
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
1 changed files with 7 additions and 7 deletions
  1. +7
    -7
      wiringPi/wiringPi.c

+ 7
- 7
wiringPi/wiringPi.c View File

@@ -857,12 +857,12 @@ static void usingGpioMemCheck (const char *what)
void PrintSystemStdErr () { void PrintSystemStdErr () {
struct utsname sys_info; struct utsname sys_info;
if (uname(&sys_info) == 0) { if (uname(&sys_info) == 0) {
fprintf (stderr, " wiringpi = %d.%d\n", VERSION_MAJOR, VERSION_MINOR);
fprintf (stderr, " system name = %s\n", sys_info.sysname);
//fprintf (stderr, " node name = %s\n", sys_info.nodename);
fprintf (stderr, " release = %s\n", sys_info.release);
fprintf (stderr, " version = %s\n", sys_info.version);
fprintf (stderr, " machine = %s\n", sys_info.machine);
fprintf (stderr, " WiringPi : %d.%d\n", VERSION_MAJOR, VERSION_MINOR);
fprintf (stderr, " system name : %s\n", sys_info.sysname);
//fprintf (stderr, " node name : %s\n", sys_info.nodename);
fprintf (stderr, " release : %s\n", sys_info.release);
fprintf (stderr, " version : %s\n", sys_info.version);
fprintf (stderr, " machine : %s\n", sys_info.machine);
if (strstr(sys_info.machine, "arm") == NULL && strstr(sys_info.machine, "aarch")==NULL) { if (strstr(sys_info.machine, "arm") == NULL && strstr(sys_info.machine, "aarch")==NULL) {
fprintf (stderr, " -> This is not an ARM architecture; it cannot be a Raspberry Pi.\n") ; fprintf (stderr, " -> This is not an ARM architecture; it cannot be a Raspberry Pi.\n") ;
} }
@@ -2813,7 +2813,7 @@ int wiringPiSetupPhys (void)
int wiringPiSetupSys (void) int wiringPiSetupSys (void)
{ {
piFunctionOops("wiringPiSetupSys", piFunctionOops("wiringPiSetupSys",
"use wringpi 3.1 (last version with GPIO Sysfs interface)",
"use WiringPi 3.1 (last version with GPIO Sysfs interface)",
"https://www.kernel.org/doc/html/v5.5/admin-guide/gpio/sysfs.html"); "https://www.kernel.org/doc/html/v5.5/admin-guide/gpio/sysfs.html");


return 0 ; return 0 ;


Loading…
Cancel
Save