Verified Commit abe89091 authored by Rahix's avatar Rahix
Browse files

chore(light-sensor): Make some functions static


Signed-off-by: Rahix's avatarRahix <rahix@rahix.de>
parent 52fc4af3
......@@ -12,7 +12,7 @@ static uint16_t last_value;
static TimerHandle_t poll_timer;
static StaticTimer_t poll_timer_buffer;
int epic_light_sensor_init()
static int light_sensor_init()
{
const sys_cfg_adc_t sys_adc_cfg =
NULL; /* No system specific configuration needed. */
......@@ -23,7 +23,7 @@ int epic_light_sensor_init()
return 0;
}
void readAdcCallback()
static void readAdcCallback()
{
ADC_StartConvert(ADC_CH_7, 0, 0);
ADC_GetData(&last_value);
......@@ -31,7 +31,7 @@ void readAdcCallback()
int epic_light_sensor_run()
{
epic_light_sensor_init();
light_sensor_init();
if (!poll_timer) {
poll_timer = xTimerCreateStatic(
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment