From ee55592455c9628ca21142449d4b5918a59151fe Mon Sep 17 00:00:00 2001 From: "Jan \"Yenya\" Kasprzak" Date: Fri, 30 Nov 2012 11:09:11 +0100 Subject: [PATCH] ambient light: consistent init function naming --- firmware/ambient.c | 2 +- firmware/lights.h | 2 +- firmware/main.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/firmware/ambient.c b/firmware/ambient.c index ffe7740..f6f5220 100644 --- a/firmware/ambient.c +++ b/firmware/ambient.c @@ -11,7 +11,7 @@ static uint16_t ambient_zones[] = { }; #define N_AMBIENT_ZONES (sizeof(ambient_zones)/sizeof(ambient_zones[0])) -void ambient_init() +void init_ambient() { ambient_val = 0; ambient_zone = 0; diff --git a/firmware/lights.h b/firmware/lights.h index 939bb19..826c2c6 100644 --- a/firmware/lights.h +++ b/firmware/lights.h @@ -55,7 +55,7 @@ void susp_gpio(); void gpio_set(unsigned char n, unsigned char on); /* ambient.c */ -void ambient_init(); +void init_ambient(); extern volatile unsigned char ambient_zone; void ambient_adc(uint16_t adc_val); diff --git a/firmware/main.c b/firmware/main.c index c8d1dd2..f8ae5c1 100644 --- a/firmware/main.c +++ b/firmware/main.c @@ -19,7 +19,7 @@ static void hw_setup() init_pwmled(); init_gpio(); - ambient_init(); + init_ambient(); pattern_init(); set_sleep_mode(SLEEP_MODE_IDLE); -- 2.43.5