mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-01 20:20:10 +00:00
52_I2C_BME280.pm: Bugfix in AttrFn
git-svn-id: https://svn.fhem.de/fhem/trunk@12714 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
9f91389c04
commit
da0a86b95d
@ -117,7 +117,7 @@ sub I2C_BME280_Attr (@) { # Wird beim Attribut anlegen/aendern aufgerufen
|
|||||||
if ($main::init_done and (!defined ($hash->{IODev}) or $hash->{IODev}->{NAME} ne $val)) {
|
if ($main::init_done and (!defined ($hash->{IODev}) or $hash->{IODev}->{NAME} ne $val)) {
|
||||||
main::AssignIoPort($hash,$val);
|
main::AssignIoPort($hash,$val);
|
||||||
my @def = split (' ',$hash->{DEF});
|
my @def = split (' ',$hash->{DEF});
|
||||||
I2C_LCD_Init($hash,\@def) if (defined ($hash->{IODev}));
|
I2C_BME280_Init($hash,\@def) if (defined ($hash->{IODev}));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
$msg = I2C_BME280_Catch($@) if $@;
|
$msg = I2C_BME280_Catch($@) if $@;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user