removed redundant thread switch

This commit is contained in:
Jeffrey M. Friesen 2020-04-08 11:08:26 -07:00
parent d6cb5be5b9
commit 58f07b4e87
1 changed files with 0 additions and 1 deletions

View File

@ -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