From 6ab0289447ea4388124d2a5278d10bacb438472f Mon Sep 17 00:00:00 2001 From: Bernhard Guillon Date: Fri, 3 Jan 2025 12:05:28 +0100 Subject: space_light.c: fix laser off --- usr/space_light/src/space_light.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr/space_light/src/space_light.c') diff --git a/usr/space_light/src/space_light.c b/usr/space_light/src/space_light.c index 807d9d0..82e4e1f 100644 --- a/usr/space_light/src/space_light.c +++ b/usr/space_light/src/space_light.c @@ -162,8 +162,8 @@ void set_rgbcw(struct RGBCW *rgbcw) { bk_pwm_update_param(BLUE, pwm_period, b_period); // Laser control - uint16_t laser_power = rgbcw->c; //& 0x64 - uint16_t l_period = 0; + uint16_t laser_power = rgbcw->c; + uint16_t l_period = pwm_period; // disable laser // FIMXE: use bitmaks but the compiler should guess this right if (laser_power > 100) { laser_power = -- cgit v1.2.3