aboutsummaryrefslogtreecommitdiffstats
path: root/usr/space_light
diff options
context:
space:
mode:
Diffstat (limited to 'usr/space_light')
-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 =