mirror of
https://github.com/opentx/opentx.git
synced 2025-07-21 23:35:17 +03:00
[VC++] Compilation fixes
This commit is contained in:
parent
ea562a2502
commit
e64464ff9b
3 changed files with 7 additions and 5 deletions
|
@ -1104,7 +1104,7 @@ static inline void check_struct()
|
||||||
CHKSIZE(ModelHeader, 27);
|
CHKSIZE(ModelHeader, 27);
|
||||||
CHKSIZE(CurveData, 4);
|
CHKSIZE(CurveData, 4);
|
||||||
CHKSIZE(RadioData, 835);
|
CHKSIZE(RadioData, 835);
|
||||||
CHKSIZE(ModelData, 9372);
|
CHKSIZE(ModelData, 9380);
|
||||||
|
|
||||||
#elif defined(PCBSKY9X)
|
#elif defined(PCBSKY9X)
|
||||||
CHKSIZE(MixData, 20);
|
CHKSIZE(MixData, 20);
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
#include "widgets_container.h"
|
#include "widgets_container.h"
|
||||||
|
|
||||||
#define MAX_TOPBAR_ZONES 4
|
#define MAX_TOPBAR_ZONES 4
|
||||||
#define MAX_TOPBAR_OPTIONS 0
|
#define MAX_TOPBAR_OPTIONS 1 // just because of VC++ which doesn't like 0-size arrays :(
|
||||||
#define TOPBAR_ZONE_WIDTH 70
|
#define TOPBAR_ZONE_WIDTH 70
|
||||||
#define TOPBAR_ZONE_MARGIN 3
|
#define TOPBAR_ZONE_MARGIN 3
|
||||||
|
|
||||||
|
|
|
@ -86,12 +86,14 @@ PACK(struct PxxTimerPulsesData {
|
||||||
uint32_t pcmOnesCount;
|
uint32_t pcmOnesCount;
|
||||||
});
|
});
|
||||||
|
|
||||||
PACK(struct Dsm2TimerPulsesData {
|
|
||||||
#if defined(MULTIMODULE)
|
#if defined(MULTIMODULE)
|
||||||
pulse_duration_t pulses[300];
|
#define MAX_PULSES_TRANSITIONS 300
|
||||||
#else
|
#else
|
||||||
pulse_duration_t pulses[200];
|
#define MAX_PULSES_TRANSITIONS 200
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
PACK(struct Dsm2TimerPulsesData {
|
||||||
|
pulse_duration_t pulses[MAX_PULSES_TRANSITIONS];
|
||||||
pulse_duration_t * ptr;
|
pulse_duration_t * ptr;
|
||||||
uint16_t rest;
|
uint16_t rest;
|
||||||
uint8_t index;
|
uint8_t index;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue