Correctly log motor fault data and iterate beta version number

This commit is contained in:
Jeffrey M. Friesen 2020-04-06 13:52:04 -07:00
parent c5ad718e17
commit 2b13131a44
2 changed files with 2 additions and 1 deletions

View File

@ -24,7 +24,7 @@
#define FW_VERSION_MAJOR 5
#define FW_VERSION_MINOR 00
// Set to 0 for building a release and iterate during beta test builds
#define FW_TEST_VERSION_NUMBER 1
#define FW_TEST_VERSION_NUMBER 2
#include "datatypes.h"

View File

@ -2266,6 +2266,7 @@ 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