I reported this as a bug #504 before realizing this was open source and I could fix it myself :)
If the lid is closed (on a Macbook Pro late 2013), the light sensors both report the max value. In that case, we really want to say the value is 0, so return that.
Happy to make changes if this is not an acceptable solution. I don't have any other laptops to test on unfortunately.
I reported this as a bug #504 before realizing this was open source and I could fix it myself :)
If the lid is closed (on a Macbook Pro late 2013), the light sensors both report the max value. In that case, we really want to say the value is 0, so return that.
Happy to make changes if this is not an acceptable solution. I don't have any other laptops to test on unfortunately.