trying to help kinetis by reducing RAM usage back to where it was
This commit is contained in:
parent
8e74af3e86
commit
d5aa951a49
|
@ -34,6 +34,6 @@ java \
|
||||||
-enumInputFile controllers/algo/rusefi_enums.h \
|
-enumInputFile controllers/algo/rusefi_enums.h \
|
||||||
-enumInputFile controllers/algo/rusefi_hw_enums.h \
|
-enumInputFile controllers/algo/rusefi_hw_enums.h \
|
||||||
-board kinetis \
|
-board kinetis \
|
||||||
-prepend config/boards/kinetis/config/tunerstudio/generated/kinetis_prefix.txt
|
-prepend config/boards/kinetis/config/rusefi_config_kinetis.txt
|
||||||
|
|
||||||
[ $? -eq 0 ] || { echo "ERROR generating TunerStudio config for kinetis"; exit 1; }
|
[ $? -eq 0 ] || { echo "ERROR generating TunerStudio config for kinetis"; exit 1; }
|
||||||
|
|
|
@ -1937,3 +1937,4 @@ end_struct
|
||||||
#define show_Frankenso_presets true
|
#define show_Frankenso_presets true
|
||||||
#define show_microRusEFI_presets true
|
#define show_microRusEFI_presets true
|
||||||
#define show_Proteus_presets true
|
#define show_Proteus_presets true
|
||||||
|
|
||||||
|
|
|
@ -37,4 +37,22 @@ public class VariableRegistryTest {
|
||||||
assertEquals("ab'r'", registry.applyVariables("ab@@SD_r@@"));
|
assertEquals("ab'r'", registry.applyVariables("ab@@SD_r@@"));
|
||||||
assertEquals("abr", registry.applyVariables("ab@@SD_r" + CHAR_SUFFIX + "@@"));
|
assertEquals("abr", registry.applyVariables("ab@@SD_r" + CHAR_SUFFIX + "@@"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testPrepend() {
|
||||||
|
VariableRegistry registry = new VariableRegistry();
|
||||||
|
registry.register("key_string", "value_1");
|
||||||
|
assertEquals("value_1", registry.get("key_string"));
|
||||||
|
|
||||||
|
registry.register("key_string", "value_2");
|
||||||
|
assertEquals("value_1", registry.get("key_string"));
|
||||||
|
|
||||||
|
registry.register("key_int", 1);
|
||||||
|
assertEquals("1", registry.get("key_int"));
|
||||||
|
assertEquals("1", registry.get("key_int" + _HEX_SUFFIX));
|
||||||
|
|
||||||
|
registry.register("key_int", 2);
|
||||||
|
assertEquals("1", registry.get("key_int"));
|
||||||
|
assertEquals("1", registry.get("key_int" + _HEX_SUFFIX));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue