mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-10-25 07:58:29 -04:00
Code cleanup.
This commit is contained in:
1 parent
d9c4e119f4
commit
5a3085749b
5 files changed
+7
-148
No files matched your search
@@ -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 );
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user