add stop_moteur & stop_compteur
This commit is contained in:
parent
6c241cc023
commit
3c217f88a6
16
src/main.cpp
16
src/main.cpp
|
@ -161,8 +161,12 @@ void rtc_init() {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//void stop_compteur {
|
void stop_compteur {
|
||||||
//}
|
/*Pause counter*/
|
||||||
|
pcnt_counter_pause(PCNT_TEST_UNIT);
|
||||||
|
/*Reset counter value*/
|
||||||
|
pcnt_counter_clear(PCNT_TEST_UNIT);
|
||||||
|
}
|
||||||
|
|
||||||
//void start_wifiAP {
|
//void start_wifiAP {
|
||||||
//}
|
//}
|
||||||
|
@ -212,7 +216,7 @@ void vigie () {
|
||||||
}
|
}
|
||||||
if ( etat_bouton_wifi == HIGH && sem_wifi == true && millis() - wifi_minuteur > 5000 ) {
|
if ( etat_bouton_wifi == HIGH && sem_wifi == true && millis() - wifi_minuteur > 5000 ) {
|
||||||
stop_moteur();
|
stop_moteur();
|
||||||
//stop_compteur();
|
stop_compteur();
|
||||||
//start_wifiAP();
|
//start_wifiAP();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -239,8 +243,8 @@ void setup() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void loop (){
|
void loop (){
|
||||||
// vigie ();
|
vigie();
|
||||||
//pid ();
|
pid();
|
||||||
//compte_tour ();
|
compte_tour();
|
||||||
delay(10000);
|
delay(10000);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue