1
0
mirror of https://github.com/thooge/esp32-nmea2000-obp60.git synced 2025-12-16 07:23:07 +01:00
This commit is contained in:
norbert-walter
2022-04-01 18:56:33 +02:00
parent 40b7daad16
commit 22fc368dd2
4 changed files with 4 additions and 40 deletions

View File

@@ -394,7 +394,7 @@ void OBP60Task(GwApi *api){
// Back light with sun control
if(String(backlight) == "Control by Sun"){
if(time->valid == true && date->valid == true && lat->valid == true && lon->valid == true){
setPortPin(OBP_BACKLIGHT_LED, sunControl(time->value, date->value, lat->value, lon->value, tz.toDouble()));
setPortPin(OBP_BACKLIGHT_LED, commonData.data.sunControl);
}
}
@@ -456,7 +456,7 @@ void OBP60Task(GwApi *api){
// Backlight with sun control
if(String(backlight) == "Control by Sun"){
if(time->valid == true && date->valid == true && lat->valid == true && lon->valid == true){
setPortPin(OBP_BACKLIGHT_LED, sunControl(time->value, date->value, lat->value, lon->value, tz.toDouble()));
setPortPin(OBP_BACKLIGHT_LED, commonData.data.sunControl);
}
}
}