Skip to content

Commit 9bb6cfb

Browse files
committed
remove some debugging
1 parent 49e34e8 commit 9bb6cfb

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/current_sense/hardware_specific/stm32/stm32_adc_utils.cpp

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -317,14 +317,7 @@ uint32_t _getADCChannel(PinName pin, ADC_TypeDef *AdcHandle )
317317
for (int i = first_ind; i <= last_ind; i++) {
318318
if (PinMap_ADC[i].peripheral == AdcHandle) {
319319
channel =_getADCChannelFromPinMap(PinMap_ADC[i].pin);
320-
321-
// #ifdef SIMPLEFOC_STM32_DEBUG
322-
SimpleFOCDebug::print("STM32-CS: Configuring ADC");
323-
SimpleFOCDebug::print(_adcToIndex(AdcHandle)+1);
324-
SimpleFOCDebug::print(" channel: ");
325-
SimpleFOCDebug::println((int)STM_PIN_CHANNEL(pinmap_function(PinMap_ADC[i].pin, PinMap_ADC)));
326-
// #endif
327-
320+
SIMPLEFOC_DEBUG("STM32-CS: ADC channel: ", (int)STM_PIN_CHANNEL(pinmap_function(PinMap_ADC[i].pin, PinMap_ADC)));
328321
break;
329322
}
330323
}

0 commit comments

Comments
 (0)