1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-12 19:10:32 +03:00

Fix the memcpy size parameter

This commit is contained in:
kedeng 2025-07-04 15:55:56 +08:00
parent c9640b3387
commit 9ff8c4c926

View file

@ -79,6 +79,6 @@ void pgResetFn_timerUpConfig(timerUpConfig_t *config)
cfg[TIMER_INDEX(20)].dmaopt = TIMUP20_DMA_OPT;
#endif
memcpy(config, cfg, HARDWARE_TIMER_DEFINITION_COUNT);
memcpy(config, cfg, sizeof(cfg));
}
#endif