Merge pull request #137 from madcowswe/sam_fix_config

Ensure sane config if config CRC16 mismatches
This commit is contained in:
Oskar Weigl
2018-03-11 21:47:21 -07:00
committed by GitHub
+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 {