commit | 3c25b83ab939e29c42c8dda98feca64b59548142 | [log] [tgz] |
---|---|---|
author | Chris Gibson <cgibson@google.com> | Fri Jan 13 18:30:18 2017 -0800 |
committer | Chris Gibson <cgibson@google.com> | Fri Jan 13 18:30:18 2017 -0800 |
tree | 191d347ef52e1af61ab65bfd2b2e467a09d46b98 | |
parent | 22917c05e089302feb888ed8acae15fe566b9727 [diff] |
buildroot: Fix missing parameter when setting laser channel Missing the first parameter in the i2cset command. Works on the GoFoton based optics but failed on Hisense where it is actually needed. Change-Id: I73c2769e3df0de5dff3877485be7f3a067d58856
diff --git a/fs/skeleton/usr/bin/set_laser_channel.platform_gfiberlt b/fs/skeleton/usr/bin/set_laser_channel.platform_gfiberlt index 439709e..48ced0e 100755 --- a/fs/skeleton/usr/bin/set_laser_channel.platform_gfiberlt +++ b/fs/skeleton/usr/bin/set_laser_channel.platform_gfiberlt
@@ -40,7 +40,7 @@ fi # Program the laser channel. -result=$(i2cset -y 0 0x51 0x90 $1 i) +result=$(i2cset -y 0 0x51 0x90 0 $1 i) if [ "$?" -ne "0" ]; then echo "Failed to set laser channel! i2cset error: $result" exit 1