Impossible to exit BIND mode with [Enter]

(and need to switch the radio off ...)
This commit is contained in:
Bertrand Songis
2019-08-20 10:43:33 +02:00
parent 0bde2d3d93
commit af60a3b787
7 changed files with 15 additions and 21 deletions
+5 -10
View File
@@ -152,15 +152,6 @@ class OtaUpdateInformation: public 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;
@@ -181,7 +172,11 @@ PACK(struct ModuleState {
bindInformation = destination;
callback = bindCallback;
mode = MODULE_MODE_BIND;
BIND_INFO;
#if defined(SIMU)
bindInformation->candidateReceiversCount = 2;
strcpy(bindInformation->candidateReceiversNames[0], "SimuRX1");
strcpy(bindInformation->candidateReceiversNames[1], "SimuRX2");
#endif
}
void readModuleInformation(ModuleInformation * destination, int8_t first, int8_t last)
{