Made native tests compile again
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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(...) \
|
||||
{ \
|
||||
|
||||
Reference in New Issue
Block a user