21-08-2024, 02:00 PM
Essayez peut-être dans le fichier Server.ino dans la methode handleAjax_etatActions() :
void handleAjax_etatActions() {
int Force = server.arg("Force").toInt();
int NumAction = server.arg("NumAction").toInt();
if (Force != 0) {
if (Force > 0) {
if (LesActions[NumAction].tOnOff < 0) {
LesActions[NumAction].tOnOff = 0;
} else {
======> LesActions[NumAction].tOnOff += 30;
}
} else {
if (LesActions[NumAction].tOnOff > 0) {
LesActions[NumAction].tOnOff = 0;
} else {
======> LesActions[NumAction].tOnOff -= 30;
}
}
...
void handleAjax_etatActions() {
int Force = server.arg("Force").toInt();
int NumAction = server.arg("NumAction").toInt();
if (Force != 0) {
if (Force > 0) {
if (LesActions[NumAction].tOnOff < 0) {
LesActions[NumAction].tOnOff = 0;
} else {
======> LesActions[NumAction].tOnOff += 30;
}
} else {
if (LesActions[NumAction].tOnOff > 0) {
LesActions[NumAction].tOnOff = 0;
} else {
======> LesActions[NumAction].tOnOff -= 30;
}
}
...