Rename checkManualOpen to manualOpen and update references in controller and main files

This commit is contained in:
2026-06-09 19:22:50 +02:00
parent 4f81ea6c28
commit b9602ca614
3 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -61,7 +61,7 @@ void Controller::openExactePercentAllShutter(float percent) {
} }
} }
void Controller::checkManualOpen() { void Controller::manualOpen() {
// ouvre tous les volets du salon // ouvre tous les volets du salon
if (analogRead(A7) > 512) { if (analogRead(A7) > 512) {
openExactePercentSpecificShutter(0, 100); openExactePercentSpecificShutter(0, 100);
+1 -1
View File
@@ -12,7 +12,7 @@ class Controller {
void openExactePercentSpecificShutter(unsigned short shutter, float percent); // Ouvrir un seul volet a x pourcent void openExactePercentSpecificShutter(unsigned short shutter, float percent); // Ouvrir un seul volet a x pourcent
void openExactePercentAllShutter(float percent); // ouvrir tous les volets a x pourcent void openExactePercentAllShutter(float percent); // ouvrir tous les volets a x pourcent
void checkManualOpen(); void manualOpen();
}; };
struct Shutter { struct Shutter {
+2
View File
@@ -22,4 +22,6 @@ void loop() {
ESP.restart(); ESP.restart();
else if (lastTimeCheckUpdate - millis() > timeWaitCheckUpdate) else if (lastTimeCheckUpdate - millis() > timeWaitCheckUpdate)
updater.update(); updater.update();
controller.manualOpen();
} }