finished Detector tests

This commit is contained in:
Neeflix
2018-06-28 19:03:17 +02:00
parent 54a0e0a5b8
commit bce5b12738
4 changed files with 22 additions and 11 deletions

View File

@@ -12,14 +12,15 @@
#include "../utilities/config.h"
using namespace Input;
namespace Input
{
Detector::Detector(IInputGPIOInterface* input_gpio_interface, std::map<char, Event> events, IEventNotifier* event_notifier) :
input_gpio_interface(input_gpio_interface), events(events), is_running(true), event_notifier(event_notifier)
{
this->detect_thread = std::thread(&Detector::detect, this);
CLOG(WARNING, INPUT_LOGGER) << "Created Detector";
CLOG(INFO, INPUT_LOGGER) << "Created Detector";
}
Detector::~Detector()
@@ -68,3 +69,7 @@ bool Detector::check_inputs(char& address)
}
return false;
}
}