mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-27 22:52:19 +03:00
Typos with Asinc and \ in path
This commit is contained in:
@@ -1,31 +0,0 @@
|
||||
#pragma once
|
||||
#include <Arduino.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#include <functional>
|
||||
|
||||
typedef std::function<void(void*)> NotAsincCb;
|
||||
|
||||
struct NotAsincItem {
|
||||
bool test;
|
||||
NotAsincCb cb;
|
||||
void * cb_arg;
|
||||
volatile bool is_used = false;
|
||||
};
|
||||
|
||||
class NotAsinc {
|
||||
private:
|
||||
uint8_t size;
|
||||
uint8_t task = 0;
|
||||
NotAsincItem* items = NULL;
|
||||
void handle(NotAsincCb f, void* arg);
|
||||
|
||||
public:
|
||||
NotAsinc(uint8_t size);
|
||||
~NotAsinc();
|
||||
|
||||
void add(uint8_t i, NotAsincCb, void* arg);
|
||||
void make(uint8_t task);
|
||||
void loop();
|
||||
};
|
||||
extern NotAsinc* myNotAsincActions;
|
||||
32
include/Class/NotAsync.h
Normal file
32
include/Class/NotAsync.h
Normal file
@@ -0,0 +1,32 @@
|
||||
#pragma once
|
||||
#include <Arduino.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#include <functional>
|
||||
|
||||
typedef std::function<void(void*)> NotAsyncCb;
|
||||
|
||||
struct NotAsyncItem {
|
||||
bool test;
|
||||
NotAsyncCb cb;
|
||||
void* cb_arg;
|
||||
volatile bool is_used = false;
|
||||
};
|
||||
|
||||
class NotAsync {
|
||||
private:
|
||||
uint8_t size;
|
||||
uint8_t task = 0;
|
||||
NotAsyncItem* items = NULL;
|
||||
void handle(NotAsyncCb f, void* arg);
|
||||
|
||||
public:
|
||||
NotAsync(uint8_t size);
|
||||
~NotAsync();
|
||||
|
||||
void add(uint8_t i, NotAsyncCb, void* arg);
|
||||
void make(uint8_t task);
|
||||
void loop();
|
||||
};
|
||||
|
||||
extern NotAsync* myNotAsyncActions;
|
||||
@@ -96,7 +96,7 @@ enum TimerTask_t { WIFI_SCAN,
|
||||
UDP_DB,
|
||||
TEST };
|
||||
|
||||
enum notAsincActions {
|
||||
enum NotAsyncActions {
|
||||
do_ZERO,
|
||||
do_UPGRADE,
|
||||
do_GETLASTVERSION,
|
||||
|
||||
@@ -13,13 +13,13 @@
|
||||
#include "Clock.h"
|
||||
|
||||
#include "MqttClient.h"
|
||||
#include "Utils\FileUtils.h"
|
||||
#include "Utils\JsonUtils.h"
|
||||
#include "Utils\StringUtils.h"
|
||||
#include "Utils\SysUtils.h"
|
||||
#include "Utils\PrintMessage.h"
|
||||
#include "Utils\WiFiUtils.h"
|
||||
#include "Utils\SerialPrint.h"
|
||||
#include "Utils/FileUtils.h"
|
||||
#include "Utils/JsonUtils.h"
|
||||
#include "Utils/StringUtils.h"
|
||||
#include "Utils/SysUtils.h"
|
||||
#include "Utils/PrintMessage.h"
|
||||
#include "Utils/WiFiUtils.h"
|
||||
#include "Utils/SerialPrint.h"
|
||||
|
||||
#include <Adafruit_BME280.h>
|
||||
#include <Adafruit_BMP280.h>
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
#pragma once
|
||||
|
||||
#include "Arduino.h"
|
||||
#include "Utils\StringUtils.h"
|
||||
#include "Utils\TimeUtils.h"
|
||||
#include "Utils/StringUtils.h"
|
||||
#include "Utils/TimeUtils.h"
|
||||
#include "Errors.h"
|
||||
#include "Global.h"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user