mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-13 11:29:58 +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;
|
cfg[TIMER_INDEX(20)].dmaopt = TIMUP20_DMA_OPT;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
memcpy(config, cfg, HARDWARE_TIMER_DEFINITION_COUNT);
|
memcpy(config, cfg, sizeof(cfg));
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue