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

Merge pull request #6213 from azolyoung/fixed_open_connection_bug_and_timeout_processing

fixed open connection twice times and timeout logic
This commit is contained in:
Michael Keller 2018-06-30 14:45:56 +12:00 committed by GitHub
commit dfb19981db
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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);