Skip to content

Commit 91636de

Browse files
committed
M263: Fix channel release in analogout_free()
1 parent 7e1bfb1 commit 91636de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

targets/TARGET_NUVOTON/TARGET_M261/analogout_api.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ void analogout_free(dac_t *obj)
115115
/* Channel-level windup from here */
116116

117117
/* Mark channel free */
118-
dac_modinit_mask[modidx] &= ~(1 << modidx);
118+
dac_modinit_mask[modidx] &= ~(1 << chn);
119119

120120
/* Close channel */
121121
DAC_Close(dac_base, chn);

0 commit comments

Comments
 (0)