VC++ compilation continued

This commit is contained in:
Kilrah
2019-05-04 12:06:56 +02:00
parent 03fa741aa6
commit 4a2a196607
5 changed files with 23 additions and 9 deletions
+10 -5
View File
@@ -137,6 +137,15 @@ struct BindInformation {
typedef void (* ModuleCallback)();
#if defined(SIMU)
#define BIND_INFO \
bindInformation->candidateReceiversCount = 2; \
strcpy(bindInformation->candidateReceiversNames[0], "SimuRX1"); \
strcpy(bindInformation->candidateReceiversNames[1], "SimuRX2");
#else
#define BIND_INFO
#endif
PACK(struct ModuleState {
uint8_t protocol:4;
uint8_t mode:4;
@@ -155,11 +164,7 @@ PACK(struct ModuleState {
bindInformation = destination;
callback = bindCallback;
mode = MODULE_MODE_BIND;
#if defined(SIMU)
bindInformation->candidateReceiversCount = 2;
strcpy(bindInformation->candidateReceiversNames[0], "SimuRX1");
strcpy(bindInformation->candidateReceiversNames[1], "SimuRX2");
#endif
BIND_INFO;
}
void readModuleInformation(ModuleInformation * destination, int8_t first, int8_t last)
{