add restart at the end of the wifiAP function

This commit is contained in:
pgp 2020-12-15 15:59:07 +01:00
parent 9ed16ffeb7
commit a50cd0f09e

View file

@ -237,9 +237,9 @@ void wifi_AP() {
client.stop(); client.stop();
Serial.println("Client Disconnected."); Serial.println("Client Disconnected.");
} }
ESP.restart();
} }
void stop_moteur() { void stop_moteur() {
moteur.writeMicroseconds(1500); moteur.writeMicroseconds(1500);
delay(1000); delay(1000);
@ -276,7 +276,6 @@ void scribe_sd (fs::FS &fs, const char * path, const char * horodatage) {
file.close(); file.close();
} }
void vigie () { void vigie () {
etat_bouton_wifi = digitalRead(bouton_wifi); etat_bouton_wifi = digitalRead(bouton_wifi);
if ( etat_bouton_wifi == HIGH && sem_wifi == false ) { if ( etat_bouton_wifi == HIGH && sem_wifi == false ) {