forked from electro/esp-irblaster
make summer mode do something, update readme
This commit is contained in:
+3
-1
@@ -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
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user