From c239427441c84481ac8525de7f38cf6bc64ed56b Mon Sep 17 00:00:00 2001 From: Samuel Sadok Date: Sun, 11 Mar 2018 17:10:58 -0700 Subject: [PATCH] ensure sane config if config CRC16 mismatches --- Firmware/MotorControl/config.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Firmware/MotorControl/config.cpp b/Firmware/MotorControl/config.cpp index e61a8102..f860381e 100644 --- a/Firmware/MotorControl/config.cpp +++ b/Firmware/MotorControl/config.cpp @@ -222,6 +222,11 @@ void init_configuration(void) { // motor_config[0] = MotorConfig_t(); // motor_config[1] = MotorConfig_t(); + // TODO: temporary hack, this is gonna change after refactoring + axis_configs[0] = AxisConfig(); + axis_configs[1] = AxisConfig(); + brake_resistance = 0.47f; + // Default config coming from flashed Motor_t return; } else {