Skip to content

Commit 7ac20ed

Browse files
committed
DAC: remove HAL_DAC_DeInit to avoid other channel deconfiguration
Fixes #1324 Signed-off-by: Alexandre Bourdiol <alexandre.bourdiol@st.com>
1 parent 5400d9b commit 7ac20ed

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

libraries/SrcWrapper/src/stm32/analog.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -389,12 +389,6 @@ void dac_write_value(PinName pin, uint32_t value, uint8_t do_init)
389389
return;
390390
}
391391
if (do_init == 1) {
392-
393-
if (HAL_DAC_DeInit(&DacHandle) != HAL_OK) {
394-
/* DeInitialization Error */
395-
return;
396-
}
397-
398392
/*##-1- Configure the DAC peripheral #######################################*/
399393
g_current_pin = pin;
400394
if (HAL_DAC_Init(&DacHandle) != HAL_OK) {

0 commit comments

Comments
 (0)