M263: Fix channel release in analogout_free()

pull/11122/head
cyliangtw 2019-06-13 18:31:30 +08:00
parent a62c877d0e
commit 3164095cd6
1 changed files with 1 additions and 1 deletions

View File

@ -115,7 +115,7 @@ void analogout_free(dac_t *obj)
/* Channel-level windup from here */ /* Channel-level windup from here */
/* Mark channel free */ /* Mark channel free */
dac_modinit_mask[modidx] &= ~(1 << modidx); dac_modinit_mask[modidx] &= ~(1 << chn);
/* Close channel */ /* Close channel */
DAC_Close(dac_base, chn); DAC_Close(dac_base, chn);