This commit is contained in:
rusefi 2020-08-04 23:18:35 -04:00
parent cd516b43a4
commit ce091f2778
4 changed files with 2 additions and 3 deletions

View File

@ -1659,7 +1659,6 @@ end_struct
#define TS_SD_PROTOCOL_REMOVE_FILE 6
#define TS_SD_PROTOCOL_FETCH_COMPRESSED 8
// High speed logger commands
#define TS_SET_LOGGER_SWITCH 'l'
#define TS_GET_LOGGER_GET_BUFFER 'L'

Binary file not shown.

View File

@ -89,7 +89,7 @@ public class VariableRegistry {
if (value.trim().startsWith(HEX_PREFIX)) {
int intValue = Integer.parseInt(value.trim().substring(HEX_PREFIX.length()), 16);
intValues.put(var, intValue);
javaDefinitions.put(var, "\tpublic static final int " + var + " = " + intValue + ";" + EOL);
javaDefinitions.put(var, "\tpublic static final int " + var + " = " + value + ";" + EOL);
return;
}

View File

@ -135,7 +135,7 @@ public class ConfigFieldParserTest {
state.readBufferedReader(reader, Arrays.asList(javaFieldsConsumer));
assertEquals("\tpublic static final int ERROR_BUFFER_SIZE = 120;\n" +
"\tpublic static final int ERROR_BUFFER_SIZE_H = 288;\n" +
"\tpublic static final int ERROR_BUFFER_SIZE_H = 0x120;\n" +
"",
VariableRegistry.INSTANCE.getJavaConstants());
}