Skip to content

Commit 785cf0a

Browse files
committed
better mechanism to enable internal channels - bg431-esc1
1 parent a0d29b6 commit 785cf0a

File tree

1 file changed

+3
-1
lines changed
  • src/current_sense/hardware_specific/stm32/b_g431

1 file changed

+3
-1
lines changed

src/current_sense/hardware_specific/stm32/b_g431/b_g431_hal.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ void MX_OPAMP1_Init(OPAMP_HandleTypeDef* hopamp);
1414
void MX_OPAMP2_Init(OPAMP_HandleTypeDef* hopamp);
1515
void MX_OPAMP3_Init(OPAMP_HandleTypeDef* hopamp);
1616

17-
#define OPAMP_USE_INTERNAL_CHANNEL
17+
#ifndef OPAMP_USE_INTERNAL_CHANNEL
18+
#define OPAMP_USE_INTERNAL_CHANNEL 1
19+
#endif
1820
#endif
1921

2022
#endif

0 commit comments

Comments
 (0)