1
0
mirror of https://github.com/thooge/esp32-nmea2000-obp60.git synced 2025-12-15 23:13:07 +01:00

Fix for sunset/sunrise

This commit is contained in:
norbert-walter
2022-04-04 17:41:55 +02:00
parent 79b0e9ab9e
commit ff76620329
5 changed files with 17 additions and 9 deletions

View File

@@ -50,11 +50,20 @@ typedef struct{
bool sunDown = true;
} SensorData;
typedef struct{
int sunsetHour = 0;
int sunsetMinute = 0;
int sunriseHour = 0;
int sunriseMinute = 0;
bool sunDown = true;
} SunData;
typedef struct{
GwApi::Status status;
GwLog *logger=NULL;
GwConfigHandler *config=NULL;
SensorData data;
SunData sundata;
GwApi::BoatValue *time=NULL;
GwApi::BoatValue *date=NULL;
} CommonData;