2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-14 05:46:35 +00:00

52_I2C_PCA9532: fix for reading of multiple bytes

git-svn-id: https://svn.fhem.de/fhem/trunk@7334 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
klauswitt 2014-12-27 11:45:58 +00:00
parent 00309775eb
commit 08464ae9e2

View File

@ -340,7 +340,7 @@ sub I2C_PCA9532_Get($@) {
my $name =$a[0];
my %sendpackage = ( i2caddress => $hash->{I2C_Address}, direction => "i2cread" );
$sendpackage{reg} = 0; #startadresse zum lesen
$sendpackage{reg} = 0x10; #startadresse zum lesen (Adresse 0 mit Auto increment flag)
$sendpackage{nbyte} = 10;
return "$name: no IO device defined" unless ($hash->{IODev});
my $phash = $hash->{IODev};