This commit is contained in:
Jonas Zeunert
2018-05-31 15:47:09 +02:00
2 changed files with 13 additions and 9 deletions

View File

@@ -36,7 +36,7 @@ class Detector
{
public:
Detector(GPIOInterface& gpio_interface, std::map<char, InputEvent> events, InputEventNotifier& input_event_notifier);
Detector(GPIOInterface* in_gpio_interface, std::map<char, InputEvent> events, InputEventNotifier* input_event_notifier);
~Detector();
private:
@@ -44,11 +44,11 @@ private:
bool check_inputs(char& address);
private:
GPIOInterface& gpio_interface;
GPIOInterface* in_gpio_interface;
std::map<char, InputEvent> input_events;
InputEventNotifier& input_event_notifier;
InputEventNotifier* input_event_notifier;
bool is_running;
std::thread detect_thread;