added PocketChip pins
[linux-gpio-pinout] / gpio.pl
diff --git a/gpio.pl b/gpio.pl
index f0c93d6..8c5a532 100755 (executable)
--- a/gpio.pl
+++ b/gpio.pl
@@ -223,7 +223,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;