small fix

This commit is contained in:
Jonas Zeunert
2018-09-27 14:20:25 +02:00
parent e15e2d1152
commit 267eaca941

View File

@@ -42,10 +42,10 @@ bool FlippR_Driver::Input::DistributingEvent::is_bouncing()
void FlippR_Driver::Input::DistributingEvent::inactive() void FlippR_Driver::Input::DistributingEvent::inactive()
{ {
if(activation_state == 2) if(activation_state == ACTIVATED)
{ {
this->last_activation = std::chrono::high_resolution_clock::now(); this->last_activation = std::chrono::high_resolution_clock::now();
activation_state = ActivationState::NOT_ACTIVATED; activation_state = NOT_ACTIVATED;
} }
} }