2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-02-07 16:59:18 +00:00

FRM: use 'received' instead of 'data' in I2C-received argument

git-svn-id: https://svn.fhem.de/fhem/trunk@5352 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
ntruchsess 2014-03-28 17:19:32 +00:00
parent 42a6dd1a88
commit 65a7665a4e
2 changed files with 3 additions and 3 deletions

View File

@ -696,7 +696,7 @@ sub FRM_i2c_update_device
direction => "i2cread",
reg => $data->{register},
nbyte => scalar(@{$data->{data}}),
data => join (' ',@{$data->{data}})
received => join (' ',@{$data->{data}})
});
} elsif (defined $hash->{"i2c-address"} && $hash->{"i2c-address"}==$data->{address}) {
my $replydata = $data->{data};

View File

@ -168,13 +168,13 @@ sub I2C_DS1307_Poll {
# direction => "i2cread",
# reg => $data->{register},
# nbyte => scalar(@{$data->{data}}),
# data => join (' ',@{$data->{data}})
# received => join (' ',@{$data->{data}})
sub I2C_DS1307_Receive {
my ( $hash, $package ) = @_;
$hash->{DS1307}->receive(
split (' ',$package->{data})
split (' ',$package->{received})
);
main::readingsSingleUpdate( $hash, "datetime", $hash->{DS1307}->getDatetime(), 1 );
}