1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-19 06:15:16 +03:00

fixed open connection twice times and timeout logic

This commit is contained in:
azol 2018-06-25 13:27:30 +08:00 committed by azolyoung
parent 5967b9b597
commit 8b98528590
8 changed files with 159 additions and 99 deletions

View file

@ -82,6 +82,7 @@
#include "pg/vcd.h"
#include "pg/usb.h"
#include "pg/sdio.h"
#include "pg/rcdevice.h"
#include "rx/rx.h"
#include "rx/cc2500_frsky_common.h"
@ -1091,6 +1092,11 @@ const clivalue_t valueTable[] = {
#ifdef USE_FLASH
{ "flash_spi_bus", VAR_UINT8 | MASTER_VALUE, .config.minmax = { 0, SPIDEV_COUNT }, PG_FLASH_CONFIG, offsetof(flashConfig_t, spiDevice) },
#endif
// RCDEVICE
#ifdef USE_RCDEVICE
{ "rcdevice_init_dev_attempts", VAR_UINT8 | MASTER_VALUE, .config.minmax = { 0, 10 }, PG_RCDEVICE_CONFIG, offsetof(rcdeviceConfig_t, initDeviceAttempts) },
{ "rcdevice_init_dev_attempt_interval", VAR_UINT32 | MASTER_VALUE, .config.minmax = { 500, 5000 }, PG_RCDEVICE_CONFIG, offsetof(rcdeviceConfig_t, initDeviceAttemptInterval) }
#endif
};
const uint16_t valueTableEntryCount = ARRAYLEN(valueTable);