mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-02-25 09:55:38 +00:00
58_RPI_1Wire: fix udev check for therm_bulk_read
git-svn-id: https://svn.fhem.de/fhem/trunk@28055 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
ee4e7dbc15
commit
91c051dd39
@ -144,9 +144,10 @@ sub RPI_1Wire_Init { #
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ($device eq "BUSMASTER") {
|
if ($device eq "BUSMASTER") {
|
||||||
if (!-w "$w1_path/$arg/therm_bulk_read") {
|
if (-e "$w1_path/$arg/therm_bulk_read") {
|
||||||
|
$hash->{helper}{write}.="therm_bulk_read " if (!-w "$w1_path/$arg/therm_bulk_read");
|
||||||
|
} else {
|
||||||
readingsSingleUpdate($hash, 'therm_bulk_read', "off",0);
|
readingsSingleUpdate($hash, 'therm_bulk_read', "off",0);
|
||||||
$hash->{helper}{write}.="therm_bulk_read " if (-e $ms_path.$id."/therm_bulk_read" )
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
RPI_1Wire_Set($hash, $name, "setfromreading");
|
RPI_1Wire_Set($hash, $name, "setfromreading");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user