Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
refactor sysfs_light #4283
syfs_light was written originally for Kobo Aura One but works fine on other devices w/ natural light (like other new kobos and Bq cervantes 4).
Some devices don't have a green led and /dev/null is used as the sysfs_path, causing log errors trying to write to /dev/null/bl_power and the like.
This PR moves sysfs_light outside kobo realm (because I'm going to use in cervantes) and removes the Kobo Aura One values hardcoded in the file. It doesn't try to write to nil dirs, so errors in log are also removed.