diff --git a/FHEM/10_FRM.pm b/FHEM/10_FRM.pm index 7b3d2991d..4a51bd8d8 100755 --- a/FHEM/10_FRM.pm +++ b/FHEM/10_FRM.pm @@ -3,6 +3,16 @@ package main; use strict; use warnings; + +#add FHEM/lib to @INC if it's not allready included. Should rather be in fhem.pl than here though... +BEGIN { + if (!grep(/FHEM\/lib$/,@INC)) { + foreach my $inc (grep(/FHEM$/,@INC)) { + push @INC,$inc."/lib"; + }; + }; +}; + use Device::Firmata::Constants qw/ :all /; use Device::Firmata::IO; use Device::Firmata::Protocol;