mirror of
https://github.com/thooge/esp32-nmea2000-obp60.git
synced 2025-12-16 07:23:07 +01:00
Backup
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user