From b42c9662303d1a33ebe038d1895c08945cdbd40f Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 5 Mar 2025 19:26:58 +0100 Subject: Cleanup and style update (avoid typedef) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/solar.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/solar.h') diff --git a/src/solar.h b/src/solar.h index 389484e..56f7041 100644 --- a/src/solar.h +++ b/src/solar.h @@ -28,7 +28,7 @@ #define SOLAR_CIVIL_TWILIGHT_ELEV -6.0 #define SOLAR_DAYTIME_ELEV (0.0 - SOLAR_ATM_REFRAC) -typedef enum { +enum solar_time { SOLAR_TIME_NOON = 0, SOLAR_TIME_MIDNIGHT, SOLAR_TIME_ASTRO_DAWN, @@ -40,7 +40,7 @@ typedef enum { SOLAR_TIME_NAUT_DUSK, SOLAR_TIME_ASTRO_DUSK, SOLAR_TIME_MAX -} solar_time_t; +}; double solar_elevation(double date, double lat, double lon); -- cgit v1.2.3-70-g09d2