From 9dc00abe3544b394c1aa7c4a9c058c5637e95b26 Mon Sep 17 00:00:00 2001 From: rudolfkoenig <> Date: Sun, 24 Oct 2010 16:08:48 +0000 Subject: [PATCH] FHEM2FHEM and associated changes git-svn-id: https://svn.fhem.de/fhem/trunk@732 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/CHANGED | 2 + fhem/FHEM/16_CUL_RFR.pm | 1 + fhem/FHEM/98_structure.pm | 18 --------- fhem/docs/commandref.html | 63 +++++++++++++++++++++++++++++- fhem/fhem.pl | 81 ++++++++++++++++++++++++++++++++++----- 5 files changed, 137 insertions(+), 28 deletions(-) diff --git a/fhem/CHANGED b/fhem/CHANGED index 0acd7b73f..78afe7240 100644 --- a/fhem/CHANGED +++ b/fhem/CHANGED @@ -2,6 +2,8 @@ - feature: smallscreen optimizations for iPhone - feature: FHT8V rewrite (and moved from contrib into the FHEM directory). - feature: PID rewrite (and moved from contrib into the FHEM directory). + - feature: FHEM2FHEM module + - bugfix: CUL get should not digest foreign events (fhtsoftbuffer) - 2010-08-15 (5.0) - **NOTE*: The default installation path is changed to satisfy lintian diff --git a/fhem/FHEM/16_CUL_RFR.pm b/fhem/FHEM/16_CUL_RFR.pm index 4c2ec804b..ea8d3ed22 100755 --- a/fhem/FHEM/16_CUL_RFR.pm +++ b/fhem/FHEM/16_CUL_RFR.pm @@ -25,6 +25,7 @@ CUL_RFR_Initialize($) $hash->{WriteFn} = "CUL_RFR_Write"; $hash->{GetFn} = "CUL_Get"; $hash->{SetFn} = "CUL_Set"; + $hash->{noRawInform} = 1; # Our message was already sent as raw. } diff --git a/fhem/FHEM/98_structure.pm b/fhem/FHEM/98_structure.pm index d650c6716..c55ff0247 100755 --- a/fhem/FHEM/98_structure.pm +++ b/fhem/FHEM/98_structure.pm @@ -4,8 +4,6 @@ package main; use strict; use warnings; -sub addToAttrList($); - ##################################### sub structure_Initialize($) @@ -199,20 +197,4 @@ structure_Attr($@) return undef; } -sub -addToAttrList($) -{ - my $arg = shift; - - my $ua = ""; - $ua = $attr{global}{userattr} if($attr{global}{userattr}); - my @al = split(" ", $ua); - my %hash; - foreach my $a (@al) { - $hash{$a} = 1; - } - $hash{$arg} = 1; - $attr{global}{userattr} = join(" ", sort keys %hash); -} - 1; diff --git a/fhem/docs/commandref.html b/fhem/docs/commandref.html index c3a72d954..e67d00665 100644 --- a/fhem/docs/commandref.html +++ b/fhem/docs/commandref.html @@ -121,6 +121,7 @@ Helper modules