FHT shortmessage
git-svn-id: https://fhem.svn.sourceforge.net/svnroot/fhem/trunk/fhem@265 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
1
CHANGED
1
CHANGED
@@ -439,3 +439,4 @@
|
||||
- feature: new modules 00_CM11.pm and 20_X10.pm for integration of X10
|
||||
devices in fhem (Boris 2008-11-02)
|
||||
- feature: X10 support for pgm3 (Boris 2008-11-02)
|
||||
- bugfix: FHT short message warning
|
||||
|
||||
@@ -318,6 +318,12 @@ FHT_Parse($$)
|
||||
my $def = $defptr{$dev};
|
||||
my $name = $def->{NAME};
|
||||
|
||||
# Short message
|
||||
if(length($msg) < 26) {
|
||||
Log 4,"FHT Short message. Device $name, Message: $msg";
|
||||
return "";
|
||||
}
|
||||
|
||||
if(!$val || $cde eq "65" || $cde eq "66") {
|
||||
# This is a confirmation message. We reformat it so that
|
||||
# it looks like a real message, and let the rest parse it
|
||||
|
||||
Reference in New Issue
Block a user