diff --git a/epicardium/modules/light_sensor.c b/epicardium/modules/light_sensor.c index 461f60c73b5b01a9639fee1503332c8600e9c722..9fcb6f7cb5ac8874ae85a8bed40d628902b682c0 100644 --- a/epicardium/modules/light_sensor.c +++ b/epicardium/modules/light_sensor.c @@ -42,9 +42,9 @@ int epic_light_sensor_run() readAdcCallback, &poll_timer_buffer ); - if (poll_timer == NULL) { - //TODO: Handle failure - } + // since &poll_timer_buffer is not NULL, xTimerCreateStatic should allways succeed, so + // we don't need to check for poll_timer being NULL. + } if (xTimerIsTimerActive(poll_timer) == pdTRUE) {