Leds are always off when BrigthnessPercent is zero

This commit is contained in:
PS 2021-09-28 11:42:16 -05:00
parent f99db5acca
commit e1d652d884
1 changed files with 4 additions and 1 deletions

View File

@ -800,7 +800,10 @@ BlumenLumen_CustomUpdate(gs_data UserData, app_state* State, context* Context)
} }
// Dim the leds based on temp data // Dim the leds based on temp data
if (State->AnimationSystem.UpdatesThisFrame > 0 && !BLState->DEBUG_IgnoreWeatherDimmingLeds) b8 ShouldDim = (State->AnimationSystem.UpdatesThisFrame > 0);
if (BLState->BrightnessPercent == 0) ShouldDim = true;
if (BLState->DEBUG_IgnoreWeatherDimmingLeds) ShouldDim = false;
if (ShouldDim)
{ {
led_buffer B0 = State->LedSystem.Buffers[0]; led_buffer B0 = State->LedSystem.Buffers[0];
pixel P0 = B0.Colors[0]; pixel P0 = B0.Colors[0];