Made native tests compile again

This commit is contained in:
Martin Bauer
2023-08-28 15:06:29 +02:00
parent 900d3c8262
commit 2efa985a05
12 changed files with 172 additions and 28 deletions

View File

@@ -1,4 +1,5 @@
#include "Logger.h"
#include "AllocAbstraction.h"
constexpr size_t LOG_SIZE = 1024 * 1024 * 2;
@@ -12,10 +13,12 @@ Logger *Logger::getInstance()
void Logger::init()
{
theLogger = new Logger();
#ifdef PLATFORM_ESP32
Serial.begin(115200);
while (!Serial)
{
}
#endif
}
Logger::Logger()

View File

@@ -1,6 +1,16 @@
#pragma once
#include "TimeAbstraction.h"
#ifdef PLATFORM_ESP32
#include "Arduino.h"
#endif
#ifdef PLATFORM_NATIVE
#include <stdint.h>
#include <string.h>
#include <utility>
#endif
#define LOG_INFO(...) \
{ \