Skip to content

Commit bbba6af

Browse files
author
xlyric
committed
correction mises en route cooler préchauffe #79
1 parent bd9f26f commit bbba6af

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/config/config.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#ifndef CONFIG
22
#define CONFIG
33

4-
#define VERSION "Version 20251025"
4+
#define VERSION "Version 20251118"
55
#define FS_RELEASE "20251025" // date de la release
66

77
constexpr size_t TEMPERATURE_PRECISION=11;

src/tasks/cooler.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ void cooler() {
2121
/// controle du cooler
2222
if (config.dimmer_on_off == 1) {
2323
if ( ( sysvar.puissance > config.minpow && sysvar.celsius[sysvar.dallas_maitre]< config.maxtemp &&
24-
!sysvar.security ) || ( programme.run == true || programme_marche_forcee.run)) {
24+
!sysvar.security ) || ( programme.run == true || programme_marche_forcee.run) || config.preheat ) {
2525
sysvar.cooler = true;
2626
} else {
2727
sysvar.cooler = false;
@@ -42,7 +42,7 @@ void cooler() {
4242
}
4343

4444
if (sysvar.cooler == 0 && millis() - lastCoolerOffTime >= cooldownDuration && digitalRead(COOLER) == HIGH &&
45-
programme.run == false && !programme_marche_forcee.run) {
45+
programme.run == false && !programme_marche_forcee.run && !config.preheat) {
4646
digitalWrite(COOLER, LOW); // Éteindre le ventilateur après X secondes (cooldownDuration)
4747

4848
if ( config.HA ) { device_cooler.send(stringBool(false)); }

0 commit comments

Comments
 (0)