mirror of
https://github.com/MrUnknownDE/OpenIris-ESPIDF.git
synced 2026-04-19 14:33:45 +02:00
Reformat project using clang-format
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user