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

[VC++] Compilation fixes

This commit is contained in:
Bertrand Songis 2016-06-21 20:24:58 +02:00
parent ea562a2502
commit e64464ff9b
3 changed files with 7 additions and 5 deletions

View file

@ -1104,7 +1104,7 @@ static inline void check_struct()
CHKSIZE(ModelHeader, 27);
CHKSIZE(CurveData, 4);
CHKSIZE(RadioData, 835);
CHKSIZE(ModelData, 9372);
CHKSIZE(ModelData, 9380);
#elif defined(PCBSKY9X)
CHKSIZE(MixData, 20);

View file

@ -24,7 +24,7 @@
#include "widgets_container.h"
#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_MARGIN 3

View file

@ -86,12 +86,14 @@ PACK(struct PxxTimerPulsesData {
uint32_t pcmOnesCount;
});
PACK(struct Dsm2TimerPulsesData {
#if defined(MULTIMODULE)
pulse_duration_t pulses[300];
#define MAX_PULSES_TRANSITIONS 300
#else
pulse_duration_t pulses[200];
#define MAX_PULSES_TRANSITIONS 200
#endif
PACK(struct Dsm2TimerPulsesData {
pulse_duration_t pulses[MAX_PULSES_TRANSITIONS];
pulse_duration_t * ptr;
uint16_t rest;
uint8_t index;