mirror of
https://github.com/opentx/opentx.git
synced 2025-07-20 23:05:12 +03:00
Logs and Telemetry decorrelated. Telemetry helpers. Possibility to reset the altitude. Flash optimizations.
This commit is contained in:
parent
9e0fd2a3d2
commit
a6e6a2dd12
17 changed files with 342 additions and 322 deletions
12
src/simu.cpp
12
src/simu.cpp
|
@ -296,9 +296,19 @@ void Gruvin9xSim::refreshDiplay()
|
|||
#else
|
||||
static FXuint keys2[]={KEY_F8, KEY_F7, KEY_F4, KEY_F3, KEY_F6, KEY_F5, KEY_F1, KEY_F2 };
|
||||
#endif
|
||||
#ifdef PCBV4
|
||||
pinj = 0;
|
||||
#else
|
||||
pind = 0;
|
||||
#endif
|
||||
for(unsigned i=0; i<DIM(keys2);i++){
|
||||
if(getApp()->getKeyState(keys2[i])) pind |= (1<<i);
|
||||
if(getApp()->getKeyState(keys2[i])) {
|
||||
#ifdef PCBV4
|
||||
pinj |= (1<<i);
|
||||
#else
|
||||
pind |= (1<<i);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
struct SwitchKey {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue