trying to log dimming

This commit is contained in:
PS 2021-09-26 16:24:57 -05:00
parent 0a1ad2d4ac
commit 732356739b
1 changed files with 964 additions and 954 deletions

View File

@ -748,17 +748,27 @@ BlumenLumen_CustomUpdate(gs_data UserData, app_state* State, context* Context)
if (Blumen_TempShouldDimLeds(BLState)) if (Blumen_TempShouldDimLeds(BLState))
{ {
OverrideBrightness = HighTemperatureBrightnessPercent; OverrideBrightness = HighTemperatureBrightnessPercent;
OutputDebugString("Set Brightness High Temp");
} }
else else
{ {
OverrideBrightness = FullBrightnessPercent; OverrideBrightness = FullBrightnessPercent;
OutputDebugString("Set Brightness Full");
} }
TimelineShouldAdvance = true; TimelineShouldAdvance = true;
} }
else
{
OutputDebugString("Skipped Time Range Dimming");
}
State->AnimationSystem.TimelineShouldAdvance = TimelineShouldAdvance; State->AnimationSystem.TimelineShouldAdvance = TimelineShouldAdvance;
BLState->BrightnessPercent = OverrideBrightness; BLState->BrightnessPercent = OverrideBrightness;
} }
else
{
OutputDebugString("Skipped Dimming Altogether");
}
// Dim the leds based on temp data // Dim the leds based on temp data
if (false && !BLState->DEBUG_IgnoreWeatherDimmingLeds) if (false && !BLState->DEBUG_IgnoreWeatherDimmingLeds)