made references to pointers

This commit is contained in:
Neeflix
2018-05-31 15:42:18 +02:00
parent 4c820110d5
commit 7f55408961
2 changed files with 13 additions and 9 deletions

View File

@@ -37,7 +37,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:
@@ -45,11 +45,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;