FBDECT: Some more log

git-svn-id: https://svn.fhem.de/fhem/trunk@6386 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2014-08-09 13:32:02 +00:00
parent bc3ebb8f92
commit 9daa9f2a11

View File

@@ -131,6 +131,7 @@ FBDECT_Get($@)
my $state = "inactive" if($answ[0] =~ m/ inactive,/);
while($d) {
my ($ptyp, $plen, $pyld) = FBDECT_decodePayload($d);
Log3 $hash, 4, "Payload: $d -> $ptyp: $pyld";
last if($ptyp eq "");
if($ptyp eq "state" &&
ReadingsVal($hash->{NAME}, $ptyp, "") ne $pyld) {
@@ -172,6 +173,7 @@ FBDECT_Parse($$@)
my $d = substr($msg, 32);
while($d) {
my ($ptyp, $plen, $pyld) = FBDECT_decodePayload($d);
Log3 $hash, 4, "Payload: $d -> $ptyp: $pyld";
last if($ptyp eq "");
readingsBulkUpdate($hash, $ptyp, $pyld);
$d = substr($d, 16+$plen*2);