1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-26 01:35:21 +03:00

Cosmetics

This commit is contained in:
Bertrand Songis 2019-10-05 14:28:50 +02:00
parent 6504b4f69c
commit f5c60a86a9
No known key found for this signature in database
GPG key ID: F189F79290FEC50F
24 changed files with 171 additions and 126 deletions

View file

@ -44,13 +44,10 @@ Key keys[NUM_KEYS];
event_t getEvent(bool trim)
{
event_t evt = s_evt;
int8_t k = EVT_KEY_MASK(s_evt) - TRM_BASE;
bool trim_evt = (k>=0 && k<TRM_LAST-TRM_BASE+1);
if (trim == trim_evt) {
event_t event = s_evt;
if (trim == IS_TRIM_EVENT(event)) {
s_evt = 0;
return evt;
return event;
}
else {
return 0;