fixed some testing bugs
This commit is contained in:
@@ -25,9 +25,9 @@ Detector::Detector(IInputGPIOInterface* input_gpio_interface, std::map<char, Eve
|
||||
|
||||
Detector::~Detector()
|
||||
{
|
||||
is_running = false;
|
||||
this->is_running = false;
|
||||
|
||||
detect_thread.join();
|
||||
this->detect_thread.join();
|
||||
|
||||
delete this->input_gpio_interface;
|
||||
this->input_gpio_interface = NULL;
|
||||
@@ -39,7 +39,7 @@ Detector::~Detector()
|
||||
// Cycles over all s and enqueues an event if detected.
|
||||
void Detector::detect()
|
||||
{
|
||||
while(is_running)
|
||||
while(this->is_running)
|
||||
{
|
||||
char address;
|
||||
if(this->check_inputs(address))
|
||||
|
||||
Reference in New Issue
Block a user