Skip to content

Commit

Permalink
fix Bareword wiringPiSetup not allowed while strict subs in use at
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel BUtler committed Sep 22, 2015
1 parent 1f2e9bd commit 7c385f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion WiringPi.pm
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ sub setup {
my $class = ref($proto) || $proto; # MAGIC - DO NOT TRY TO UNDERSTAND THIS
my $self = undef;

my $success = wiringPiSetup;
my $success = wiringPiSetupSys;
if ($success >= 0) {
$self = {"success" => $success};
bless $self, $class; # MAGIC - DO NOT TRY TO UNDERSTAND THIS
Expand Down

0 comments on commit 7c385f0

Please sign in to comment.