]> www.fi.muni.cz Git - tinyboard.git/blobdiff - projects/step-up/pwmled.c
step-up/README: detailed description of the project
[tinyboard.git] / projects / step-up / pwmled.c
index 24fbe87cc8b6d93f2e6604af7744aeb22befd483..bc604da70063a0c63ec3528294563128c03308db 100644 (file)
@@ -25,8 +25,8 @@ static uint16_t adc_max = MA_TO_ADC(30);
 
 static uint16_t targets[N_PWMLED_MODES] = {
        MA_TO_ADC( 2),
-       MA_TO_ADC( 8),
-       MA_TO_ADC(14),
+       MA_TO_ADC( 6),
+       MA_TO_ADC(12),
        MA_TO_ADC(20),
 };
 
@@ -74,6 +74,8 @@ static inline void pwmled_err()
 
        log_byte(0xF1);
        log_flush();
+
+       set_error(ERR_PWMLED);
 }