firmware/main: For breathe mode, allow earlier OverBright re-use
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
This commit is contained in:
parent
69d8da7f2a
commit
2277549293
|
@ -277,9 +277,9 @@ la_breathe_render(void *state, uint16_t *leds,
|
||||||
s->leds[i].pha = pha;
|
s->leds[i].pha = pha;
|
||||||
|
|
||||||
/* Early OverBright release */
|
/* Early OverBright release */
|
||||||
/* After pha >= 40000, we're not overbright anyway, so
|
/* After pha >= 28000, we know that it's safe to allow a new overbright led
|
||||||
* allow another led to use it early */
|
* because we'll be past the peak by the time they start needing overbright */
|
||||||
if (s->leds[i].ob && (s->leds[i].pha > 40000)) {
|
if (s->leds[i].ob && (s->leds[i].pha > 28000)) {
|
||||||
s->leds[i].ob = false;
|
s->leds[i].ob = false;
|
||||||
s->n_ob--;
|
s->n_ob--;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue