mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-25 17:25:20 +03:00
Avoid copying in pgRestFn_rxConfig()
This commit is contained in:
parent
8a60857a09
commit
cbc23bb68c
1 changed files with 1 additions and 1 deletions
|
@ -109,7 +109,7 @@ static uint8_t rcSampleIndex = 0;
|
||||||
PG_REGISTER_WITH_RESET_FN(rxConfig_t, rxConfig, PG_RX_CONFIG, 0);
|
PG_REGISTER_WITH_RESET_FN(rxConfig_t, rxConfig, PG_RX_CONFIG, 0);
|
||||||
void pgResetFn_rxConfig(rxConfig_t *rxConfig)
|
void pgResetFn_rxConfig(rxConfig_t *rxConfig)
|
||||||
{
|
{
|
||||||
RESET_CONFIG(const rxConfig_t, rxConfig,
|
RESET_CONFIG_2(rxConfig_t, rxConfig,
|
||||||
.halfDuplex = 0,
|
.halfDuplex = 0,
|
||||||
.serialrx_provider = SERIALRX_PROVIDER,
|
.serialrx_provider = SERIALRX_PROVIDER,
|
||||||
.rx_spi_protocol = RX_SPI_DEFAULT_PROTOCOL,
|
.rx_spi_protocol = RX_SPI_DEFAULT_PROTOCOL,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue