From c23b7d415641fa9ed90aa62bb26df9b3191bea76 Mon Sep 17 00:00:00 2001 From: rusefi Date: Sat, 31 Aug 2019 23:06:40 -0400 Subject: [PATCH] better defaults to make things easier --- firmware/gen_config.bat | 2 ++ .../src/com/rusefi/ConfigDefinition.java | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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)) {