Code cleanup.

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

No files matched your search

+1 -4
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 );
}