added config.h
This commit is contained in:
@@ -10,6 +10,8 @@
|
|||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
|
||||||
|
#include "../utilities/config.h"
|
||||||
|
|
||||||
namespace Input
|
namespace Input
|
||||||
{
|
{
|
||||||
|
|
||||||
@@ -45,7 +47,7 @@ void Detector::detect()
|
|||||||
}
|
}
|
||||||
catch(std::out_of_range& e)
|
catch(std::out_of_range& e)
|
||||||
{
|
{
|
||||||
// todo log exception!
|
CLOG(WARNING, INPUT_LOGGER) << "Did not found event for address: " << address << " check config-file";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -17,6 +17,8 @@
|
|||||||
#include <thread>
|
#include <thread>
|
||||||
#include <map>
|
#include <map>
|
||||||
|
|
||||||
|
#include "../lib/easylogging/easylogging++.h"
|
||||||
|
|
||||||
#include "../utilities/InputGPIOInterface.h"
|
#include "../utilities/InputGPIOInterface.h"
|
||||||
#include "Event.hpp"
|
#include "Event.hpp"
|
||||||
#include "EventNotifier.h"
|
#include "EventNotifier.h"
|
||||||
|
|||||||
@@ -14,6 +14,7 @@
|
|||||||
|
|
||||||
#include "../utilities/InputGPIOInterface.h"
|
#include "../utilities/InputGPIOInterface.h"
|
||||||
#include "../lib/json/json.hpp"
|
#include "../lib/json/json.hpp"
|
||||||
|
#include "../lib/easylogging/easylogging++.h"
|
||||||
#include "EventNotifier.h"
|
#include "EventNotifier.h"
|
||||||
|
|
||||||
using namespace nlohmann;
|
using namespace nlohmann;
|
||||||
@@ -54,6 +55,11 @@ private:
|
|||||||
return input_events;
|
return input_events;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void ConfigureLogger()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user