|
|
@@ -272,6 +272,12 @@ void mc_conf_default(void) {
|
|
|
|
|
|
void mc_conf_init(void) {
|
|
|
mc_conf_load();
|
|
|
+ if (conf.version != CONFIG_Version) {
|
|
|
+ sys_debug("mc conf ver %d != %d\n", conf.version, CONFIG_Version);
|
|
|
+ mc_conf_default();
|
|
|
+ mc_conf_save();
|
|
|
+ }
|
|
|
+ sys_debug("mc conf size %d\n", sizeof(mc_config));
|
|
|
}
|
|
|
|
|
|
int mc_conf_decode_motor(u8 *buff) {
|