mirror of
https://github.com/opentx/opentx.git
synced 2025-07-26 01:35:21 +03:00
Another big refactoring
This commit is contained in:
parent
52435703a0
commit
7fbd963b3f
140 changed files with 1311 additions and 1292 deletions
|
@ -20,13 +20,13 @@
|
|||
|
||||
#include "opentx.h"
|
||||
|
||||
evt_t s_evt;
|
||||
event_t s_evt;
|
||||
struct t_inactivity inactivity = {0};
|
||||
|
||||
#if defined(CPUARM)
|
||||
evt_t getEvent(bool trim)
|
||||
event_t getEvent(bool trim)
|
||||
{
|
||||
evt_t evt = s_evt;
|
||||
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);
|
||||
|
||||
|
@ -39,9 +39,9 @@ evt_t getEvent(bool trim)
|
|||
}
|
||||
}
|
||||
#else
|
||||
evt_t getEvent()
|
||||
event_t getEvent()
|
||||
{
|
||||
evt_t evt = s_evt;
|
||||
event_t evt = s_evt;
|
||||
s_evt = 0;
|
||||
return evt;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue