VoltaireNoir / blight

A hassle-free CLI utility/library to manage backlight on Linux; one that plays well with hybrid GPU configuration and proprietary drivers.
23 stars 1 forks source link

Panics when Sweep rate is larger than val #1

Closed ErikReider closed 1 year ago

ErikReider commented 1 year ago

https://github.com/VoltaireNoir/blight/blob/c1d2f02b07ad5eedaca41e788bf9952775ac5585/src/lib.rs#L293

VoltaireNoir commented 1 year ago

@ErikReider Thanks for reporting it. I'll be fixing it soon.

By the way, as a user of the library, do you feel that the sweep function is a little confusing to work with? I'm thinking about turning it into a method on the Device struct. That would also simplify the function signature.

ErikReider commented 1 year ago

The sweep function worked fine for me. There was just a delay in my UI when waiting for the sweep to complete but that issue is on my end to fix :)