2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-03 10:46:53 +00:00

PRESENCE: fixing not working re-initialization in mode lan-bluetooth

git-svn-id: https://svn.fhem.de/fhem/trunk@4140 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
markusbloch 2013-11-02 19:59:09 +00:00
parent f31c73ed06
commit deaf457106
2 changed files with 3 additions and 1 deletions

View File

@ -1,6 +1,8 @@
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
# Do not insert empty lines here, update check depends on it.
- SVN
- bugfix: PRESENCE: fixing not working re-initialization when
disabled attribute is set to 0 in lan-bluetooth mode
- feature: LightScene: added attribute lightSceneParamsToSave for
device specific configuration of reading/command pairs
used to save/restore device state

View File

@ -444,7 +444,7 @@ PRESENCE_DoInit($)
my ($hash) = @_;
if( not exists($hash->{helper}{DISABLED}) or exists($hash->{helper}{DISABLED}) and $hash->{helper}{DISABLED} == 1)
if( not exists($hash->{helper}{DISABLED}) or (exists($hash->{helper}{DISABLED}) and $hash->{helper}{DISABLED} == 0))
{
readingsSingleUpdate($hash, "state", "active",0);
DevIo_SimpleWrite($hash, $hash->{ADDRESS}."|".$hash->{TIMEOUT_NORMAL}."\n", 0);