]> www.fi.muni.cz Git - bike-lights.git/commitdiff
patterns: consistent init function naming
authorJan "Yenya" Kasprzak <kas@fi.muni.cz>
Fri, 30 Nov 2012 10:10:04 +0000 (11:10 +0100)
committerJan "Yenya" Kasprzak <kas@fi.muni.cz>
Fri, 30 Nov 2012 10:10:04 +0000 (11:10 +0100)
firmware/lights.h
firmware/main.c
firmware/pattern.c

index 826c2c6faf33fe5e010408811505e9477e695e4e..a016340c0ed5dffd1153a103785b2c5b989adf15 100644 (file)
@@ -72,7 +72,7 @@ extern pattern_t zero_pattern[];
 extern pattern_t on_pattern[];
 extern pattern_t mode1_pattern[];
 
-void pattern_init();
+void init_pattern();
 void patterns_next_tick();
 void led_set_pattern(unsigned char led, pattern_t *pattern);
 pattern_t *number_pattern(unsigned char num);
index f8ae5c14b93291454993fb4d7e184313008fe98c..a19a0ab810838ca919f28bf7779e4b80b9de822a 100644 (file)
@@ -20,7 +20,7 @@ static void hw_setup()
        init_pwmled();
        init_gpio();
        init_ambient();
-       pattern_init();
+       init_pattern();
 
        set_sleep_mode(SLEEP_MODE_IDLE);
 }
index f5f8fc6f8003ab9a92761e4d9992e46b0081c022..3aec77b947bec7b52edea8f6b1cd470504a54b66 100644 (file)
@@ -102,7 +102,7 @@ void led_set_pattern(unsigned char n, pattern_t *pattern)
        led_set_mode(n, pattern->mode);
 }
 
-void pattern_init()
+void init_pattern()
 {
        unsigned char i;