Arduino-FOC icon indicating copy to clipboard operation
Arduino-FOC copied to clipboard

[BUG] Copy/paste error in stm32g4 current sense

Open dekutree64 opened this issue 7 months ago • 1 comments

Spotted a probable copy/paste error while reading through https://github.com/simplefoc/Arduino-FOC/tree/master/src/current_sense/hardware_specific/stm32/stm32g4/stm32g4_utils.cpp Line 208, shouldn't that be ADC_EXTERNALTRIG_T8_TRGO?

#ifdef TIM8 // if defined timer 8 else if(timer->getHandle()->Instance == TIM8) return ADC_EXTERNALTRIG_T7_TRGO; #endif

dekutree64 avatar Jul 14 '24 07:07 dekutree64