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:
parent
c9640b3387
commit
9ff8c4c926
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue