Fixed regression introduced with bug #1050 fix.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@13371 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
This commit is contained in:
parent
fd3218bd25
commit
8abbb0e374
|
@ -433,12 +433,12 @@ void dac_lld_start(DACDriver *dacp) {
|
|||
zero.*/
|
||||
#if STM32_DAC_DUAL_MODE == FALSE
|
||||
{
|
||||
uint32_t cr = dacp->params->dac->CR;
|
||||
uint32_t cr;
|
||||
|
||||
dacp->params->dac->CR = cr;
|
||||
cr = dacp->params->dac->CR;;
|
||||
cr &= dacp->params->regmask;
|
||||
cr |= (DAC_CR_EN1 | dacp->config->cr) << dacp->params->regshift;
|
||||
dacp->params->dac->CR &= dacp->params->regmask;
|
||||
dacp->params->dac->CR = cr;
|
||||
dac_lld_put_channel(dacp, channel, dacp->config->init);
|
||||
}
|
||||
#else
|
||||
|
|
Loading…
Reference in New Issue