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

git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@4140 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
markusbloch
2013-11-02 19:59:09 +00:00
parent 0ef44bb859
commit 39b4a7ed8f
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);