|
@@ -957,15 +957,14 @@ bool light_cmd_mul_brightness(light_context_t *ctx)
|
957
|
957
|
|
958
|
958
|
uint64_t old_value = value;
|
959
|
959
|
value *= ctx->run_params.float_value;
|
960
|
|
-
|
|
960
|
+
|
961
|
961
|
// Check that we actually de/increase value
|
962
|
|
- if( value == old_value ) {
|
963
|
|
- if( ctx->runs_params.float_value > 1 ) {
|
|
962
|
+ if(value == old_value)
|
|
963
|
+ {
|
|
964
|
+ if(ctx->runs_params.float_value > 1)
|
964
|
965
|
value++;
|
965
|
|
- }
|
966
|
|
- if( ctx->runs_params.float_value < 1 && value > 0 ) {
|
|
966
|
+ if(ctx->runs_params.float_value < 1 && value > 0)
|
967
|
967
|
value--;
|
968
|
|
- }
|
969
|
968
|
}
|
970
|
969
|
|
971
|
970
|
uint64_t mincap = _light_get_min_cap(ctx);
|