From 3d4bf578a526966a700ecd906cbb5a8df4df74d9 Mon Sep 17 00:00:00 2001 From: PS Date: Sun, 26 Sep 2021 16:41:55 -0500 Subject: [PATCH] debug --- src/app/ss_blumen_lumen/blumen_lumen.cpp | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/src/app/ss_blumen_lumen/blumen_lumen.cpp b/src/app/ss_blumen_lumen/blumen_lumen.cpp index ae6b201..17ed7e0 100644 --- a/src/app/ss_blumen_lumen/blumen_lumen.cpp +++ b/src/app/ss_blumen_lumen/blumen_lumen.cpp @@ -510,6 +510,8 @@ BlumenLumen_ApplyNextHotHue(blumen_lumen_state* BLState, context Context, gs_str internal void BlumenLumen_CustomUpdate(gs_data UserData, app_state* State, context* Context) { + DEBUG_TRACK_FUNCTION; + blumen_lumen_state* BLState = (blumen_lumen_state*)UserData.Memory; BLState->ShouldUpdateLog = false; @@ -785,31 +787,25 @@ BlumenLumen_CustomUpdate(gs_data UserData, app_state* State, context* Context) if (Blumen_TempShouldDimLeds(BLState)) { OverrideBrightness = HighTemperatureBrightnessPercent; - OutputDebugString("Set Brightness High Temp"); } else { - OverrideBrightness = FullBrightnessPercent; - OutputDebugString("Set Brightness Full"); + OverrideBrightness = FullBrightnessPercent; } TimelineShouldAdvance = true; } - else - { - OutputDebugString("Skipped Time Range Dimming"); - } State->AnimationSystem.TimelineShouldAdvance = TimelineShouldAdvance; BLState->BrightnessPercent = OverrideBrightness; } - else - { - OutputDebugString("Skipped Dimming Altogether"); - } // Dim the leds based on temp data - if (false && !BLState->DEBUG_IgnoreWeatherDimmingLeds) + if (!BLState->DEBUG_IgnoreWeatherDimmingLeds) { + Log_Message(GlobalLogBuffer, "Dimming: %f %d %d\n", + BLState->BrightnessPercent, + State->LedSystem.BuffersCount, + State->LedSystem.LedsCountTotal); for (u32 i = 0; i < State->LedSystem.BuffersCount; i++) { led_buffer Buffer = State->LedSystem.Buffers[i];