 // log rotator
 void logtourne() {
   for (int i = 49; i > 0; i--) {
-    int l = i;
-    l = l + 1;
+    int l = i + 1;
     logs[l] = logs[i];
   }
 }


//setup page
void handleSetup() {
  if (!server.authenticate(www_username, string2char(resetpass)))
    return server.requestAuthentication();
  int ouireset = 0;
  String addy = server.client().remoteIP().toString();
  Serial.println("");
  Serial.println(addy);
  Serial.println("!!! SETTINGS PAGE !!!");
  String testteu = server.arg("RESET");
  String passme = server.arg("PASSME");
  String noupass = server.arg("LAPASSE");

  resetpass = preferences.getString("resetpass", "admin");
  thingkey = preferences.getString("thingkey", "none");
  thingchanel = preferences.getString("thingchanel", "none");
  liens = "<a href=\"/\">Acceuil</a> - <a href=\"/temp\">Temp&eacute;rature</a> - <a href=\"/version\">Version</a> - <a href=\"/setup\">Setup</a> - <a href=\"/reset\">Reset</a> - <a href=\"https://thingspeak.com/channels/";
  liens += thingchanel;
  liens += "\">Temp stats</a>\n";
  WiFiManager wifiManager;
