aboutsummaryrefslogtreecommitdiffstats
path: root/usr/space_light/src/space_light.c
diff options
context:
space:
mode:
authorBernhard Guillon <Bernhard.Guillon@begu.org>2025-01-03 12:05:28 +0100
committerBernhard Guillon <Bernhard.Guillon@begu.org>2025-01-03 12:05:28 +0100
commit6ab0289447ea4388124d2a5278d10bacb438472f (patch)
treef18e3fe7f08cfb309f2e18d17324cdc08d7bcc45 /usr/space_light/src/space_light.c
parent2a77444b4cc48870554cdd20cd95ef13d1654e2a (diff)
downloadwb3s-ble-nebula-galaxy-6ab0289447ea4388124d2a5278d10bacb438472f.tar.gz
wb3s-ble-nebula-galaxy-6ab0289447ea4388124d2a5278d10bacb438472f.zip
space_light.c: fix laser off
Diffstat (limited to 'usr/space_light/src/space_light.c')
-rw-r--r--usr/space_light/src/space_light.c4
1 files changed, 2 insertions, 2 deletions
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 =