Private
Public Access
2
0
Files
mraa/include
Jan Kiszka 954b17ded4 led: Fix and cleanup initialization
The structure returned by readdir is may be statically allocated.
Keeping a pointer to it is broken.

The LED path is generally not a directory, it's a link to a directory.
And even if it were a directory, that would tell nothing about the
caller's access permissions.

And then there is a lot of duplication between mraa_led_init and
mraa_led_init_raw.

This addresses that all.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
2021-06-29 11:49:25 -07:00
..
2021-02-01 13:35:09 -08:00
2019-05-23 10:09:12 -07:00
2019-05-23 10:09:12 -07:00
2019-05-23 10:09:12 -07:00
2019-05-23 10:09:12 -07:00
2019-05-23 10:09:12 -07:00
2018-03-05 13:42:02 +01:00
2019-05-23 10:09:12 -07:00
2019-05-23 10:09:12 -07:00
2019-05-23 10:09:12 -07:00
2019-05-23 10:09:12 -07:00