From 3c1c6465bb29893ccb26b131986d803a169f007f Mon Sep 17 00:00:00 2001 From: "Jan \"Yenya\" Kasprzak" Date: Mon, 1 Dec 2014 13:07:31 +0100 Subject: [PATCH] Step-up: only three intensity levels --- projects/step-up/lights.h | 2 +- projects/step-up/pwmled.c | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/projects/step-up/lights.h b/projects/step-up/lights.h index e3bd6e3..565deef 100644 --- a/projects/step-up/lights.h +++ b/projects/step-up/lights.h @@ -1,7 +1,7 @@ #ifndef LIGHTS_H__ #define LIGHTS_H__ 1 -#define N_PWMLED_MODES 4 +#define N_PWMLED_MODES 3 /* logging.c */ #ifdef USE_LOGGING diff --git a/projects/step-up/pwmled.c b/projects/step-up/pwmled.c index 485d024..2ede13b 100644 --- a/projects/step-up/pwmled.c +++ b/projects/step-up/pwmled.c @@ -25,8 +25,7 @@ static uint16_t adc_max = MA_TO_ADC(30); static uint16_t targets[N_PWMLED_MODES] = { MA_TO_ADC( 2), - MA_TO_ADC( 6), - MA_TO_ADC(12), + MA_TO_ADC(10), MA_TO_ADC(20), }; -- 2.39.3