MSVC errors
This commit is contained in:
@@ -350,6 +350,12 @@ PACK(struct CustomFunctionData {
|
|||||||
|
|
||||||
typedef int16_t gvar_t;
|
typedef int16_t gvar_t;
|
||||||
|
|
||||||
|
#if MAX_ROTARY_ENCODERS > 0
|
||||||
|
#define FLIGHT_MODE_ROTARY_ENCODERS_FIELD int16_t rotaryEncoders[MAX_ROTARY_ENCODERS];
|
||||||
|
#else
|
||||||
|
#define FLIGHT_MODE_ROTARY_ENCODERS_FIELD
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(CPUARM)
|
#if defined(CPUARM)
|
||||||
PACK(struct FlightModeData {
|
PACK(struct FlightModeData {
|
||||||
trim_t trim[4];
|
trim_t trim[4];
|
||||||
@@ -358,7 +364,7 @@ PACK(struct FlightModeData {
|
|||||||
int16_t spare:7;
|
int16_t spare:7;
|
||||||
uint8_t fadeIn;
|
uint8_t fadeIn;
|
||||||
uint8_t fadeOut;
|
uint8_t fadeOut;
|
||||||
int16_t rotaryEncoders[MAX_ROTARY_ENCODERS];
|
FLIGHT_MODE_ROTARY_ENCODERS_FIELD
|
||||||
gvar_t gvars[MAX_GVARS];
|
gvar_t gvars[MAX_GVARS];
|
||||||
});
|
});
|
||||||
#elif !defined(PCBSTD)
|
#elif !defined(PCBSTD)
|
||||||
@@ -368,7 +374,7 @@ PACK(struct FlightModeData {
|
|||||||
NOBACKUP(char name[LEN_FLIGHT_MODE_NAME]);
|
NOBACKUP(char name[LEN_FLIGHT_MODE_NAME]);
|
||||||
uint8_t fadeIn:4;
|
uint8_t fadeIn:4;
|
||||||
uint8_t fadeOut:4;
|
uint8_t fadeOut:4;
|
||||||
int16_t rotaryEncoders[MAX_ROTARY_ENCODERS];
|
FLIGHT_MODE_ROTARY_ENCODERS_FIELD
|
||||||
gvar_t gvars[MAX_GVARS];
|
gvar_t gvars[MAX_GVARS];
|
||||||
});
|
});
|
||||||
#else
|
#else
|
||||||
|
|||||||
@@ -272,7 +272,10 @@ void processSportPacket(uint8_t * packet)
|
|||||||
else if (id >= DIY_FIRST_ID && id <= DIY_LAST_ID) {
|
else if (id >= DIY_FIRST_ID && id <= DIY_LAST_ID) {
|
||||||
#if defined(LUA)
|
#if defined(LUA)
|
||||||
if (luaInputTelemetryFifo) {
|
if (luaInputTelemetryFifo) {
|
||||||
|
#if defined __GNUC__
|
||||||
|
// TODO remove this ifdef when we have updated to MSVC recent version
|
||||||
luaInputTelemetryFifo->push((LuaTelemetryValue){(uint8_t)id, data});
|
luaInputTelemetryFifo->push((LuaTelemetryValue){(uint8_t)id, data});
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user