XN297EMU: option=0->nrf24L01, option!=0 -> CC2500

XN297L@250kbps is emulated by default with the NRF24L01. If option (freq tune) is diffrent from 0, the CC2500 module (if installed) will be used instead with option being the freq usual tuning.
This commit is contained in:
pascallanger
2020-01-12 14:06:27 +01:00
parent 953a97dae4
commit 6a9b6ed4be
12 changed files with 408 additions and 426 deletions

View File

@@ -125,11 +125,11 @@ static void multi_send_status()
multi_send_header(MULTI_TELEMETRY_STATUS, 24);
else
#endif
#ifdef MULTI_TELEMETRY
#ifdef MULTI_TELEMETRY
multi_send_header(MULTI_TELEMETRY_STATUS, 6);
#else
multi_send_header(MULTI_TELEMETRY_STATUS, 5);
#endif
#else
multi_send_header(MULTI_TELEMETRY_STATUS, 6);
#endif
// Build flags
uint8_t flags=0;
@@ -170,9 +170,9 @@ static void multi_send_status()
Serial_write(VERSION_REVISION);
Serial_write(VERSION_PATCH_LEVEL);
// Channel order
#ifdef MULTI_TELEMETRY
Serial_write(RUDDER<<6|THROTTLE<<4|ELEVATOR<<2|AILERON);
// Channel order
Serial_write(RUDDER<<6|THROTTLE<<4|ELEVATOR<<2|AILERON);
#endif
#ifdef MULTI_NAMES