mirror of https://github.com/rusefi/bldc.git
removed redundant thread switch
This commit is contained in:
parent
d6cb5be5b9
commit
58f07b4e87
|
@ -2266,7 +2266,6 @@ static THD_FUNCTION(fault_stop_thread, arg) {
|
|||
chEvtWaitAny((eventmask_t) 1);
|
||||
#ifdef HW_HAS_DUAL_MOTORS
|
||||
volatile motor_if_state_t *motor = m_fault_stop_is_second_motor ? &m_motor_2 : &m_motor_1;
|
||||
mc_interface_select_motor_thread(m_fault_stop_is_second_motor + 1);
|
||||
#else
|
||||
volatile motor_if_state_t *motor = &m_motor_1;
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue