Re: [hackers] [PATCH slstatus] Add basic backlight percentage support

From: Aaron Marcher <me_AT_drkhsh.at>
Date: Sun, 20 May 2018 22:21:25 +0200

David,

> Done and done.

do you send an updated patch with the check for != 1 for pscanf and the
division by zero here or should I add it after applying?

> Good catch, what do you recommend if max is 0? Resetting to 100? Or to
> return NULL to indicate an error?

I am not quite sure but if the max is 0 we should return NULL as
something is weird.

Cheers!
Aaron

-- 
Web: https://drkhsh.at/ or http://drkhsh5rv6pnahas.onion/
Gopher: gopher://drkhsh.at or gopher://drkhsh5rv6pnahas.onion
GPG: 0x7A65E38D55BE96FE
Fingerprint: 4688 907C 8720 3318 0D9F AFDE 7A65 E38D 55BE 96FE
Received on Sun May 20 2018 - 22:21:25 CEST

This archive was generated by hypermail 2.3.0 : Sun May 20 2018 - 22:24:42 CEST