From d2d66452238dcc8912f0a5b7fb4132235453193f Mon Sep 17 00:00:00 2001 From: "Jan \"Yenya\" Kasprzak" Date: Wed, 10 Apr 2013 23:48:27 +0200 Subject: [PATCH] pattern+current adjustments --- firmware/control.c | 4 ++-- firmware/pwmled.c | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/firmware/control.c b/firmware/control.c index 4de03ab..da59972 100644 --- a/firmware/control.c +++ b/firmware/control.c @@ -158,8 +158,8 @@ pattern_t *pwmled0_pattern_select() switch (ambient_zone) { case 0: return dim_mode ? NULL : number_pattern(2, 1); - case 1: return dim_mode ? NULL : normal3_pattern; - case 2: return dim_mode ? slow3_pattern : normal3_pattern; + case 1: return dim_mode ? slow1_pattern : normal2_pattern; + case 2: return dim_mode ? slow2_pattern : normal3_pattern; case 3: default: return dim_mode ? slow3_pattern : normal4_pattern; } diff --git a/firmware/pwmled.c b/firmware/pwmled.c index 8e86b4f..9aa6d80 100644 --- a/firmware/pwmled.c +++ b/firmware/pwmled.c @@ -48,7 +48,7 @@ static uint16_t adc_vals[N_PWMLEDS*N_PWMLED_MODES] = { MA_GAIN_TO_ADC( 50, 20), MA_GAIN_TO_ADC( 100, 20), MA_GAIN_TO_ADC( 200, 20), - MA_GAIN_TO_ADC( 300, 20), + MA_GAIN_TO_ADC( 350, 20), /* pwmled1 */ MA_GAIN_TO_ADC( 5, 20), MA_GAIN_TO_ADC( 10, 20), @@ -61,8 +61,8 @@ static uint16_t adc_vals[N_PWMLEDS*N_PWMLED_MODES] = { MA_GAIN_TO_ADC( 200, 1) #else /* pwmled0 */ + MA_GAIN_TO_ADC( 50, 20), MA_GAIN_TO_ADC( 100, 20), - MA_GAIN_TO_ADC( 150, 20), MA_GAIN_TO_ADC( 200, 20), MA_GAIN_TO_ADC( 350, 20), /* pwmled1 */ @@ -71,8 +71,8 @@ static uint16_t adc_vals[N_PWMLEDS*N_PWMLED_MODES] = { MA_GAIN_TO_ADC( 18, 20), MA_GAIN_TO_ADC( 23, 20), /* pwmled2 */ - MA_GAIN_TO_ADC( 200, 1), - MA_GAIN_TO_ADC( 400, 1), + MA_GAIN_TO_ADC( 150, 1), + MA_GAIN_TO_ADC( 300, 1), MA_GAIN_TO_ADC( 800, 1), MA_GAIN_TO_ADC(1500, 1) #endif -- 2.43.5