1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-22 07:45:14 +03:00

Merge pull request #1102 from opentx/bsongis/Switches_refactoring

Switches code moved to a separate file
This commit is contained in:
Bertrand Songis 2014-05-15 07:36:14 +02:00
commit d047133e64
9 changed files with 618 additions and 571 deletions

View file

@ -672,7 +672,13 @@ void perMain();
NOINLINE void per10ms();
getvalue_t getValue(uint8_t i);
bool getSwitch(int8_t swtch);
bool getSwitch(int8_t swtch);
#if defined(PCBTARANIS)
void getSwitchesPosition(bool startup);
#else
#define getSwitchesPosition(...)
#endif
extern swstate_t switches_states;
int8_t getMovedSwitch();