]> www.fi.muni.cz Git - bike-lights.git/commitdiff
pwmled: remove old unused function
authorJan "Yenya" Kasprzak <kas@fi.muni.cz>
Thu, 22 Nov 2012 21:26:08 +0000 (22:26 +0100)
committerJan "Yenya" Kasprzak <kas@fi.muni.cz>
Thu, 22 Nov 2012 21:26:08 +0000 (22:26 +0100)
firmware/lights.h
firmware/pwmled.c

index b9f6b1f037943413ef6b6230dfb9e199b7473d2e..b159ae8cee2390bcd808a6b1a1bf2662fc161edb 100644 (file)
@@ -44,7 +44,6 @@ void susp_tmr();
 void pwmled_init();
 void pwmled_adc(unsigned char n, uint16_t adcval);
 void pwmled_set_mode(unsigned char n, unsigned char mode);
-unsigned char pwmled_needs_adc(unsigned char n);
 unsigned char pwmled_enabled(unsigned char n);
 
 /* gpio.c */
index b76f219fb32b1c597358832f333be26c621d50f4..8c6196481bfc64c4d60b1be62d15011d2cfe647b 100644 (file)
@@ -86,15 +86,6 @@ void pwmled_init()
        }
 }
 
-unsigned char pwmled_needs_adc(unsigned char n)
-{
-       unsigned char st = pwmled_state[n];
-       if (st == ST_PROBING || st == ST_ON)
-               return 1;
-       else
-               return 0;
-}
-
 unsigned char pwmled_enabled(unsigned char n)
 {
        unsigned char st = pwmled_state[n];