Sfoglia il codice sorgente

Follow-up to f14f4ee0, use correct struct member

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
Joachim Nilsson 5 anni fa
parent
commit
215dbcdeec
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2
    2
      src/light.c

+ 2
- 2
src/light.c Vedi File

@@ -961,9 +961,9 @@ bool light_cmd_mul_brightness(light_context_t *ctx)
961 961
     // Check that we actually de/increase value
962 962
     if(value == old_value)
963 963
     {
964
-        if(ctx->runs_params.float_value > 1)
964
+        if(ctx->run_params.float_value > 1)
965 965
             value++;
966
-        if(ctx->runs_params.float_value < 1 && value > 0)
966
+        if(ctx->run_params.float_value < 1 && value > 0)
967 967
             value--;
968 968
     }
969 969