ensure sane config if config CRC16 mismatches

This commit is contained in:
Samuel Sadok
2018-03-11 20:04:53 -07:00
parent 7dfb41eb5a
commit c239427441
+5
View File
@@ -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 {