1
0
mirror of https://github.com/sjlongland/cluster-powerctl.git synced 2025-09-13 12:03:14 +10:00

powerctl: Drop solar presence check.

At night, we probably don't want to just hammer the batteries with 14.4V
all the time.  If we switch to "solar mode", that'll give the batteries
a bit of a break from the charger.
This commit is contained in:
Stuart Longland 2018-10-01 10:07:17 +10:00
parent e87ea6a0b8
commit fe8520116f
Signed by: stuartl
GPG Key ID: 6AA32EFB18079BAA

View File

@ -249,9 +249,7 @@ static void mains_float_check(void) {
return;
} else if (
/* Battery is high for ≥T_FLOAT_S seconds */
(!t_batt)
/* Solar voltage is high */
&& (v_sol_adc >= V_SOL_MIN_ADC)
!t_batt
) {
/* Solar can take it from here */
enter_solar();