diff --git a/firmware/gen_config.bat b/firmware/gen_config.bat index 5d9d7770b7..0d486c5791 100644 --- a/firmware/gen_config.bat +++ b/firmware/gen_config.bat @@ -16,6 +16,8 @@ java -DSystemOut.name=gen_config ^ -definition integration\rusefi_config.txt ^ -romraider integration ^ -ts_destination tunerstudio ^ + -with_c_defines false ^ + -initialize_to_zero false ^ -c_defines controllers\generated\rusefi_generated.h ^ -c_destination controllers\generated\engine_configuration_generated_structures.h ^ -java_destination ../java_console/models/src/com/rusefi/config/generated/Fields.java ^ diff --git a/java_tools/configuration_definition/src/com/rusefi/ConfigDefinition.java b/java_tools/configuration_definition/src/com/rusefi/ConfigDefinition.java index 0b826c5a4d..4b38b1ac95 100644 --- a/java_tools/configuration_definition/src/com/rusefi/ConfigDefinition.java +++ b/java_tools/configuration_definition/src/com/rusefi/ConfigDefinition.java @@ -83,7 +83,7 @@ public class ConfigDefinition { } else if (key.equals(KEY_C_DESTINATION)) { destCHeader = args[i + 1]; } else if (key.equals(KEY_ZERO_INIT)) { - needZeroInit = true; + needZeroInit = Boolean.parseBoolean(args[i + 1]); } else if (key.equals(KEY_WITH_C_DEFINES)) { CHeaderConsumer.withC_Defines = Boolean.parseBoolean(args[i + 1]); } else if (key.equals(KEY_C_DEFINES)) {