Skip to content

Commit

Permalink
gpio: initialize inverted property in open for sysfs implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
vsergeev committed May 29, 2020
1 parent ecbd5aa commit 0f20c96
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -824,6 +824,10 @@ int gpio_open_sysfs(gpio_t *gpio, unsigned int line, gpio_direction_t direction)
return ret;
}

ret = gpio_sysfs_set_inverted(gpio, false);
if (ret < 0)
return ret;

return 0;
}

Expand Down

0 comments on commit 0f20c96

Please sign in to comment.