1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-24 08:45:36 +03:00

Avoid copying in pgRestFn_rxConfig()

This commit is contained in:
DieHertz 2017-03-17 02:07:41 +03:00
parent 8a60857a09
commit cbc23bb68c

View file

@ -109,7 +109,7 @@ static uint8_t rcSampleIndex = 0;
PG_REGISTER_WITH_RESET_FN(rxConfig_t, rxConfig, PG_RX_CONFIG, 0);
void pgResetFn_rxConfig(rxConfig_t *rxConfig)
{
RESET_CONFIG(const rxConfig_t, rxConfig,
RESET_CONFIG_2(rxConfig_t, rxConfig,
.halfDuplex = 0,
.serialrx_provider = SERIALRX_PROVIDER,
.rx_spi_protocol = RX_SPI_DEFAULT_PROTOCOL,