mirror of
https://github.com/opentx/opentx.git
synced 2025-07-23 16:25:16 +03:00
Fixed a problem with MSVC
This commit is contained in:
parent
f8c6b20a35
commit
659f9e0556
1 changed files with 7 additions and 5 deletions
|
@ -968,6 +968,12 @@ PACK(struct TrainerData {
|
||||||
#define THEME_DATA
|
#define THEME_DATA
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(BUZZER)
|
||||||
|
#define BUZZER_FIELD NOBACKUP(int8_t buzzerMode:2); // -2=quiet, -1=only alarms, 0=no keys, 1=all (only used on AVR radios without audio hardware)
|
||||||
|
#else
|
||||||
|
#define BUZZER_FIELD NOBACKUP(int8_t spareRadio:2);
|
||||||
|
#endif
|
||||||
|
|
||||||
PACK(struct RadioData {
|
PACK(struct RadioData {
|
||||||
NOBACKUP(uint8_t version);
|
NOBACKUP(uint8_t version);
|
||||||
NOBACKUP(uint16_t variant);
|
NOBACKUP(uint16_t variant);
|
||||||
|
@ -980,11 +986,7 @@ PACK(struct RadioData {
|
||||||
NOBACKUP(int8_t backlightMode);
|
NOBACKUP(int8_t backlightMode);
|
||||||
NOBACKUP(TrainerData trainer);
|
NOBACKUP(TrainerData trainer);
|
||||||
NOBACKUP(uint8_t view); // index of view in main screen
|
NOBACKUP(uint8_t view); // index of view in main screen
|
||||||
#if defined(BUZZER)
|
BUZZER_FIELD
|
||||||
NOBACKUP(int8_t buzzerMode:2); // -2=quiet, -1=only alarms, 0=no keys, 1=all (only used on AVR radios without audio hardware)
|
|
||||||
#else
|
|
||||||
NOBACKUP(int8_t spareRadio:2);
|
|
||||||
#endif
|
|
||||||
NOBACKUP(uint8_t fai:1);
|
NOBACKUP(uint8_t fai:1);
|
||||||
NOBACKUP(int8_t beepMode:2); // -2=quiet, -1=only alarms, 0=no keys, 1=all
|
NOBACKUP(int8_t beepMode:2); // -2=quiet, -1=only alarms, 0=no keys, 1=all
|
||||||
NOBACKUP(uint8_t alarmsFlash:1);
|
NOBACKUP(uint8_t alarmsFlash:1);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue