Fix dimming overflow
This commit is contained in:
parent
6d1481fb95
commit
3a6c0a6391
|
@ -1 +1 @@
|
|||
509
|
||||
513
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
|
||||
// Resolution of the brightness output
|
||||
#define LIGHTSENSOR_BITS 12
|
||||
#define LIGHTSENSOR_MAX (1 << LIGHTSENSOR_BITS)
|
||||
#define LIGHTSENSOR_MAX ((1 << LIGHTSENSOR_BITS) - 1)
|
||||
|
||||
// 'Forgetting factor' of the rolling brightness average
|
||||
#define LIGHTSENSOR_LAMBDA_BITS 2
|
||||
|
|
Loading…
Reference in a new issue