Code cleanup.

This commit is contained in:
Robert Borzecki
2019-06-26 18:59:07 +02:00
parent d9c4e119f4
commit 5a3085749b
5 changed files with 7 additions and 148 deletions

View File

@@ -57,9 +57,6 @@ void Application::TickHandler(uint32_t id) {
Service::setTimerPeriod( longpressTimerID, iev.timeout );
Service::ReloadTimer( longpressTimerID );
}
else if(iev.state != gui::InputEvent::State::keyReleasedShort ) {
Service::stopTimer( longpressTimerID );
}
if( iev.state != gui::InputEvent::State::Undefined )
messageInputEventApplication( this, this->GetName(), iev );
@@ -125,7 +122,7 @@ sys::Message_t Application::DataReceivedHandler(sys::DataMessage* msgl) {
Service::setTimerPeriod( longpressTimerID, iev.timeout );
Service::ReloadTimer( longpressTimerID );
}
else if(iev.state != gui::InputEvent::State::keyReleasedShort ) {
else if(iev.state == gui::InputEvent::State::keyReleasedShort ) {
Service::stopTimer( longpressTimerID );
}