diff --git a/GPSSpeedMultiCore.ino b/GPSSpeedMultiCore.ino index fae61cc..a9aeca0 100644 --- a/GPSSpeedMultiCore.ino +++ b/GPSSpeedMultiCore.ino @@ -12,6 +12,7 @@ #define GPS_UPDATE_FREQUENCY 10 //GPS update frequency per sec #define DEBOUNCE_DELAY 250 //time in ms #define MIDDLE_SCREEN_BRIGHTNESS 5 +#define SUN_ANGLE_ABOVE_HORIZON 2 //#define PROFILE true //GPS @@ -89,9 +90,9 @@ bool setStartBrightness() { //el = el - 180; - if (el > SUNRISESET_STD_ALTITUDE) { + if (el > SUN_ANGLE_ABOVE_HORIZON) { screenBrightnessCurrent = 15; - } else if ((el < SUNRISESET_STD_ALTITUDE) && (el > CIVIL_DAWNDUSK_STD_ALTITUDE)) { + } else if ((el < SUN_ANGLE_ABOVE_HORIZON) && (el > CIVIL_DAWNDUSK_STD_ALTITUDE)) { screenBrightnessCurrent = MIDDLE_SCREEN_BRIGHTNESS; } else if (el < CIVIL_DAWNDUSK_STD_ALTITUDE) { screenBrightnessCurrent = 0;