Skip to content

Commit c2090e2

Browse files
committed
Fix unused variable
If HAL_ADC_MODULE_ENABLED and HAL_DAC_MODULE_ENABLED are not defined it is not used. No more used if HAL_TIM_MODULE_ENABLED since HardwareTimer. Signed-off-by: Frederic Pillon <[email protected]>
1 parent 2e2299c commit c2090e2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Diff for: cores/arduino/stm32/analog.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,7 @@ extern "C" {
4747

4848

4949
/* Private_Variables */
50-
#if defined(HAL_ADC_MODULE_ENABLED) || defined(HAL_DAC_MODULE_ENABLED) ||\
51-
defined(HAL_TIM_MODULE_ENABLED)
50+
#if defined(HAL_ADC_MODULE_ENABLED) || defined(HAL_DAC_MODULE_ENABLED)
5251
static PinName g_current_pin = NC;
5352
#endif
5453

0 commit comments

Comments
 (0)