Fix NV14 simulation
This commit is contained in:
committed by
Raphael Coeffic
parent
66e08da1b8
commit
b9b31a659f
@@ -514,7 +514,7 @@ void ModuleSubTypeChoice::update()
|
||||
setGetValueHandler(GET_DEFAULT(md->subType));
|
||||
setSetValueHandler(SET_DEFAULT(md->subType));
|
||||
|
||||
#if defined(PCBNV14)
|
||||
#if defined(PCBNV14) && !defined(SIMU)
|
||||
if (moduleIdx == INTERNAL_MODULE) {
|
||||
if (hardwareOptions.pcbrev == PCBREV_NV14) {
|
||||
md->subType = FLYSKY_SUBTYPE_AFHDS2A;
|
||||
@@ -524,9 +524,11 @@ void ModuleSubTypeChoice::update()
|
||||
setAvailableHandler([](int v) { return v == FLYSKY_SUBTYPE_AFHDS3; });
|
||||
}
|
||||
}
|
||||
#else
|
||||
#elif !defined(SIMU)
|
||||
md->subType = FLYSKY_SUBTYPE_AFHDS3;
|
||||
setAvailableHandler([](int v) { return v == FLYSKY_SUBTYPE_AFHDS3; });
|
||||
#else
|
||||
setAvailableHandler(nullptr);
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -95,8 +95,6 @@ uint32_t isBootloaderStart(const uint8_t * buffer);
|
||||
// SDRAM driver
|
||||
void SDRAM_Init();
|
||||
|
||||
#if !defined(SIMU)
|
||||
|
||||
enum {
|
||||
PCBREV_NV14 = 0,
|
||||
PCBREV_EL18 = 1,
|
||||
@@ -108,6 +106,8 @@ typedef struct {
|
||||
|
||||
extern HardwareOptions hardwareOptions;
|
||||
|
||||
#if !defined(SIMU)
|
||||
|
||||
#define INTERNAL_MODULE_OFF() \
|
||||
do { \
|
||||
if (hardwareOptions.pcbrev == PCBREV_NV14) \
|
||||
|
||||
Reference in New Issue
Block a user