52_I2C_PCA9532: fix for reading of multiple bytes

git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@7334 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
klauswitt
2014-12-27 11:45:58 +00:00
parent bd4919ea1b
commit 4df4b49530

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};