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