added config.h

This commit is contained in:
Neeflix
2018-05-31 18:26:17 +02:00
parent ed83469dc3
commit d8fcc75f19
3 changed files with 11 additions and 1 deletions

View File

@@ -10,6 +10,8 @@
#include <iostream>
#include <math.h>
#include "../utilities/config.h"
namespace Input
{
@@ -45,7 +47,7 @@ void Detector::detect()
}
catch(std::out_of_range& e)
{
// todo log exception!
CLOG(WARNING, INPUT_LOGGER) << "Did not found event for address: " << address << " check config-file";
}
}
}

View File

@@ -17,6 +17,8 @@
#include <thread>
#include <map>
#include "../lib/easylogging/easylogging++.h"
#include "../utilities/InputGPIOInterface.h"
#include "Event.hpp"
#include "EventNotifier.h"

View File

@@ -14,6 +14,7 @@
#include "../utilities/InputGPIOInterface.h"
#include "../lib/json/json.hpp"
#include "../lib/easylogging/easylogging++.h"
#include "EventNotifier.h"
using namespace nlohmann;
@@ -54,6 +55,11 @@ private:
return input_events;
}
static void ConfigureLogger()
{
}
};
}