Add #pragma once to ESP32 headers
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
#ifndef CONFIG_H
|
||||
#define CONFIG_H
|
||||
|
||||
#pragma once
|
||||
|
||||
// WI-FI
|
||||
#define SSID "your_wifi_ssid"
|
||||
#define PASSWORD "your_wifi_password"
|
||||
|
||||
@@ -1,6 +1,12 @@
|
||||
#ifndef I2C_HPP
|
||||
#define I2C_HPP
|
||||
|
||||
#pragma once
|
||||
#include "freertos/FreeRTOS.h"
|
||||
#include "freertos/task.h"
|
||||
|
||||
extern TaskHandle_t i2c_task;
|
||||
|
||||
void i2cTask(void *pvParameters);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
#ifndef MAIN_HPP
|
||||
#define MAIN_HPP
|
||||
|
||||
#include "freertos/FreeRTOS.h"
|
||||
#include "freertos/event_groups.h"
|
||||
#pragma once
|
||||
|
||||
extern volatile bool criticalErrorFlag;
|
||||
extern EventGroupHandle_t connectivity_event_group;
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
#ifndef MQTT_HPP
|
||||
#define MQTT_HPP
|
||||
|
||||
#pragma once
|
||||
|
||||
void mqttTask(void *pvParameters);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
#ifndef WIFI_HPP
|
||||
#define WIFI_HPP
|
||||
|
||||
#pragma once
|
||||
|
||||
void wifiTask(void *pvParameters);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user