diff options
author | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2014-07-25 22:47:47 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2014-07-25 22:49:04 -0300 |
commit | db13b6f812ba94c562f1ed61f1457844868c47a8 (patch) | |
tree | 31d7e1813562a39c420ccad10a2e5febafc68b9c /contrib/au0828 | |
parent | b6e89ace327351c3f7b4da7205f1641fea959a8f (diff) |
parse_au0828.pl: fix I2C read payload
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to 'contrib/au0828')
-rwxr-xr-x | contrib/au0828/parse_au0828.pl | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/contrib/au0828/parse_au0828.pl b/contrib/au0828/parse_au0828.pl index 37a127b5..2129e71b 100755 --- a/contrib/au0828/parse_au0828.pl +++ b/contrib/au0828/parse_au0828.pl @@ -136,10 +136,11 @@ while (<>) { if (($reqtype == 0xc0) && ($reg == 0x0209)) { # I2C read data - push @i2c_rbuf, $val; + my @bytes = split(/ /, $payload); + push @i2c_rbuf, hex($_) foreach(@bytes); if (!$i2c_hold) { - printf "$timestamp au0828 I2C read addr = 0x%02x (speed = %s) ", $i2c_addr, $i2c_speed; + printf "$timestamp au0828 I2C read addr = 0x%02x (speed = %s, len=%d) ", $i2c_addr, $i2c_speed, scalar(@i2c_rbuf); printf "0x%02x ", $_ foreach (@i2c_rbuf); print "\n"; |