changed to inputgpiointerface

This commit is contained in:
Neeflix
2018-05-31 15:50:08 +02:00
parent 9ab84bb060
commit 39e0a092de
2 changed files with 4 additions and 4 deletions

View File

@@ -13,7 +13,7 @@
namespace Input
{
Detector::Detector(GPIOInterface* in_gpio_interface, std::map<char, InputEvent> events, InputEventNotifier* input_event_notifier) :
Detector::Detector(InputGPIOInterface* in_gpio_interface, std::map<char, InputEvent> events, InputEventNotifier* input_event_notifier) :
in_gpio_interface(in_gpio_interface), input_events(events), is_running(true), input_event_notifier(input_event_notifier)
{
detect_thread = std::thread(&Detector::detect, this);

View File

@@ -17,7 +17,7 @@
#include <thread>
#include <map>
#include "../utilities/GPIOInterface.hpp"
#include "../utilities/InputGPIOInterface.h"
#include "InputEvent.h"
#include "InputEventNotifier.h"
@@ -36,7 +36,7 @@ class Detector
{
public:
Detector(GPIOInterface* in_gpio_interface, std::map<char, InputEvent> events, InputEventNotifier* input_event_notifier);
Detector(InputGPIOInterface* in_gpio_interface, std::map<char, InputEvent> events, InputEventNotifier* input_event_notifier);
~Detector();
private:
@@ -44,7 +44,7 @@ private:
bool check_inputs(char& address);
private:
GPIOInterface* in_gpio_interface;
InputGPIOInterface* in_gpio_interface;
std::map<char, InputEvent> input_events;