Rename checkManualOpen to manualOpen and update references in controller and main files
This commit is contained in:
@@ -61,7 +61,7 @@ void Controller::openExactePercentAllShutter(float percent) {
|
||||
}
|
||||
}
|
||||
|
||||
void Controller::checkManualOpen() {
|
||||
void Controller::manualOpen() {
|
||||
// ouvre tous les volets du salon
|
||||
if (analogRead(A7) > 512) {
|
||||
openExactePercentSpecificShutter(0, 100);
|
||||
|
||||
@@ -12,7 +12,7 @@ class Controller {
|
||||
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 checkManualOpen();
|
||||
void manualOpen();
|
||||
};
|
||||
|
||||
struct Shutter {
|
||||
|
||||
@@ -22,4 +22,6 @@ void loop() {
|
||||
ESP.restart();
|
||||
else if (lastTimeCheckUpdate - millis() > timeWaitCheckUpdate)
|
||||
updater.update();
|
||||
|
||||
controller.manualOpen();
|
||||
}
|
||||
Reference in New Issue
Block a user