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:
e4052c0
)
skip sunxi-pio if missing
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Fri, 1 Dec 2017 18:56:24 +0000
(19:56 +0100)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Fri, 1 Dec 2017 18:56:24 +0000
(19:56 +0100)
gpio.pl
patch
|
blob
|
history
diff --git
a/gpio.pl
b/gpio.pl
index
ddede77
..
a209fa1
100755
(executable)
--- a/
gpio.pl
+++ b/
gpio.pl
@@
-158,6
+158,9
@@
while(<$fh>) {
warn "# pin_function = ",dump($pin_function);
+my $have_sunxi_pio = `which sunxi-pio`;
+if ( $have_sunxi_pio ) {
+
open(my $pio, '-|', 'sunxi-pio -m print');
while(<$pio>) {
chomp;
@@
-171,6
+174,8
@@
while(<$pio>) {
}
close($pio);
+} # have_sunxi_pio
+
my @max_len = ( 0,0,0,0 );
my @line_parts;