A minor bug fix release that changes the behavior of how errors are handled while acquiring a lock. Note: This release only contains changes to the CLI.
- Handle errors while acquiring a lock instead of panicking (#9)
This release contains some breaking changes for the library users, like the type change from u16
to u32
as part of a bug fix. Other than that, a current_percent
method has been added to Device
for convenience, and there's a minor CLI related change. The rest of the changes are all memory usage improvements and code refactoring for improved maintainability.
Device::current_percent
method that returns brightness percentage (in contrast withcurrent
which returns the raw current value)
- All functions and methods that took and returned
u16
now useu32
(breaking change) device_path
method now returns aPathBuf
instead of&Path
due to internal code changes (breaking change)blight status
now prints brightness percentage along with the raw value
- Significant reduction of heap allocations
- Reduced code duplication and code refactored for maintainability
- blight failing to work with devices that may use values larger than
u16::MAX
- #6 (Thanks pdamianik)
Fixed a major bug related to single instance check, which also changes the CLI behavior slightly. Improved error reporting in case of panics. Most changes in this release only affect the CLI side of things.
- CLI no longer returns an error if another instance is running. Instead, it waits for it to finish (#5)
- blight no longer compiles on OSs other than Linux, as they are unsupported
- Custom panic handler now properly prints panic related info to the user to help with better bug reports
- CLI falsely reporting that another instance is running (#4)
Device::device_path
method, returns&Path
to the location of the device insys/class/backlight/
Delay
type to customize the write frequency or delay between each write inDevice::sweep_write
- Custom panic hook (CLI) to print more helpful messages when a panic occurs
Device::reload
only reloads current valueDevice::sweep_write
updates brightness changes more efficiently (#2)
- Helper function
sweep
is nowDevice::sweep_write
(#2)
- Integer overflow while using sweep change (#1)
Device::write_value
&set_bl
silently ignoring or writing values larger than max supported (f30b3c5)- Stdout and Stderr message formatting inconsistencies