Formatting all c files

This commit is contained in:
Carsten Graf
2025-07-12 17:32:16 +02:00
parent 94b30ed7a3
commit 585d2d7d5d
13 changed files with 1129 additions and 1118 deletions

View File

@@ -1,49 +1,41 @@
// Zeit-bezogene Variablen und Includes
#pragma once
#include <Arduino.h>
#include <master.h>
#include <ESPAsyncWebServer.h>
#include <ArduinoJson.h>
#include <time.h>
#include <ESPAsyncWebServer.h>
#include <master.h>
#include <sys/time.h>
#include <time.h>
#include "communication.h"
void setupDebugAPI(AsyncWebServer &server);
void setupDebugAPI(AsyncWebServer &server) {
void setupDebugAPI(AsyncWebServer& server);
void setupDebugAPI(AsyncWebServer& server) {
//DEBUG
server.on("/api/debug/start1", HTTP_GET, [](AsyncWebServerRequest *request){
// DEBUG
server.on("/api/debug/start1", HTTP_GET, [](AsyncWebServerRequest *request) {
handleStart1(0);
request->send(200, "text/plain", "handleStart1() called");
});
});
server.on("/api/debug/stop1", HTTP_GET, [](AsyncWebServerRequest *request){
server.on("/api/debug/stop1", HTTP_GET, [](AsyncWebServerRequest *request) {
handleStop1(0);
request->send(200, "text/plain", "handleStop1() called");
});
});
server.on("/api/debug/start2", HTTP_GET, [](AsyncWebServerRequest *request){
server.on("/api/debug/start2", HTTP_GET, [](AsyncWebServerRequest *request) {
handleStart2(0);
request->send(200, "text/plain", "handleStart2() called");
});
});
server.on("/api/debug/stop2", HTTP_GET, [](AsyncWebServerRequest *request){
server.on("/api/debug/stop2", HTTP_GET, [](AsyncWebServerRequest *request) {
handleStop2(0);
request->send(200, "text/plain", "handleStop2() called");
});
});
Serial.println("Debug-API initialisiert");
Serial.println("Debug-API initialisiert");
}
//DEBUG END
// DEBUG END