projects
/
linux-gpio-pinout
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f2624bd
)
fix gpio raspi-gpio get parsing
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Thu, 19 Apr 2018 20:00:31 +0000
(22:00 +0200)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Thu, 19 Apr 2018 20:00:31 +0000
(22:00 +0200)
gpio.pl
patch
|
blob
|
history
diff --git
a/gpio.pl
b/gpio.pl
index
6702865
..
90cbf3b
100755
(executable)
--- a/
gpio.pl
+++ b/
gpio.pl
@@
-222,7
+222,7
@@
my @gpio_pins;
open(my $pio, '-|', 'raspi-gpio get');
while(<$pio>) {
chomp;
- if ( m/^GPIO (\d+): (.+)/ ) {
+ if ( m/^
\s*
GPIO (\d+): (.+)/ ) {
my $pin = 'gpio' . $1;
push @gpio_pins, $1;
annotate_pin $pin, $2 if ! $opt_svg;