TLE6240 outputs fix (#994)
This commit is contained in:
parent
18395f1cb3
commit
e20bdf4386
|
@ -380,7 +380,7 @@ int tle6240_writePad(void *data, brain_pin_e pin, int value)
|
||||||
{
|
{
|
||||||
struct tle6240_priv *chip;
|
struct tle6240_priv *chip;
|
||||||
|
|
||||||
if ((pin >= TLE6240_DIRECT_OUTPUTS) || (data == NULL))
|
if ((pin >= TLE6240_OUTPUTS) || (data == NULL))
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
chip = (struct tle6240_priv *)data;
|
chip = (struct tle6240_priv *)data;
|
||||||
|
|
Loading…
Reference in New Issue