Reformat project using clang-format

This commit is contained in:
Lorow
2026-01-06 22:51:24 +01:00
parent 567d3ebd75
commit 555e290d71
70 changed files with 3282 additions and 3428 deletions

View File

@@ -1,19 +1,17 @@
#include "OpenIrisTasks.hpp"
void restart_the_board(void *arg) {
esp_restart();
void restart_the_board(void* arg)
{
esp_restart();
}
void OpenIrisTasks::ScheduleRestart(const int milliseconds)
{
esp_timer_handle_t timerHandle;
constexpr esp_timer_create_args_t args = {
.callback = &restart_the_board,
.arg = nullptr,
.name = "restartBoard"};
esp_timer_handle_t timerHandle;
constexpr esp_timer_create_args_t args = {.callback = &restart_the_board, .arg = nullptr, .name = "restartBoard"};
if (const auto result = esp_timer_create(&args, &timerHandle); result == ESP_OK)
{
esp_timer_start_once(timerHandle, milliseconds);
}
if (const auto result = esp_timer_create(&args, &timerHandle); result == ESP_OK)
{
esp_timer_start_once(timerHandle, milliseconds);
}
}

View File

@@ -2,14 +2,14 @@
#ifndef OPENIRISTASKS_HPP
#define OPENIRISTASKS_HPP
#include "helpers.hpp"
#include "esp_system.h"
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "esp_system.h"
#include "helpers.hpp"
namespace OpenIrisTasks
{
void ScheduleRestart(int milliseconds);
void ScheduleRestart(int milliseconds);
};
#endif