make summer mode do something, update readme

This commit is contained in:
2022-09-20 01:16:22 +02:00
parent afafc0172e
commit 95927f05da
3 changed files with 13 additions and 4 deletions
+3 -1
View File
@@ -98,9 +98,11 @@ static void timerCallback()
cels_t tin = act_temp1();
cels_t tout = act_temp2();
uint16_t old_tempSerial = gState.tempSerial;
float old_tin = gState.t_actual_in;
float old_tout = gState.t_actual_out;
gState.tempSerial = act_temps_serial();
gState.t_actual_in = tin;
gState.t_actual_out = tout;
@@ -216,7 +218,7 @@ static void timerCallback()
// Max time elapsed, switch even if the condition was not reached
do_switch = true;
} else {
if (gState.lastTempsSerial != act_temps_serial()) {
if (!gSettings.summer_mode && gState.tempSerial != old_tempSerial) {
// expecting some change in temps
float speed;
if (gState.real_direction == MOTOR_DIR_IN) {
+1 -1
View File
@@ -54,7 +54,7 @@ struct FanControlState {
cels_t t_inflow;
cels_t t_exhaust;
uint16_t lastTempsSerial;
uint16_t tempSerial;
cels_t t_actual_in;
cels_t t_actual_out;