progress
This commit is contained in:
parent
d8f74ff460
commit
7bf4c362d0
|
@ -1018,6 +1018,7 @@
|
|||
#define PROTOCOL_ENGINE_SNIFFER "wave_chart"
|
||||
#define PROTOCOL_ES_DOWN "d"
|
||||
#define PROTOCOL_ES_UP "u"
|
||||
#define PROTOCOL_HELLO_PREFIX "***"
|
||||
#define PROTOCOL_HIP_NAME "HIP"
|
||||
#define PROTOCOL_INJ1_SHORT_NAME "i1"
|
||||
#define PROTOCOL_MSG "msg"
|
||||
|
|
|
@ -1018,6 +1018,7 @@
|
|||
#define PROTOCOL_ENGINE_SNIFFER "wave_chart"
|
||||
#define PROTOCOL_ES_DOWN "d"
|
||||
#define PROTOCOL_ES_UP "u"
|
||||
#define PROTOCOL_HELLO_PREFIX "***"
|
||||
#define PROTOCOL_HIP_NAME "HIP"
|
||||
#define PROTOCOL_INJ1_SHORT_NAME "i1"
|
||||
#define PROTOCOL_MSG "msg"
|
||||
|
|
|
@ -1535,6 +1535,7 @@ end_struct
|
|||
#define CMD_TRIGGER_HW_INPUT "trigger_hw_input"
|
||||
|
||||
#define PROTOCOL_MSG "msg"
|
||||
#define PROTOCOL_HELLO_PREFIX "***"
|
||||
|
||||
#define PROTOCOL_OUTPIN "outpin"
|
||||
#define PROTOCOL_ANALOG_CHART "analog_chart"
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
package com.rusefi.config.generated;
|
||||
|
||||
// this file was generated automatically by rusEfi tool ConfigDefinition.jar based on gen_config.bat integration\rusefi_config.txt Sun May 31 13:45:22 EDT 2020
|
||||
// this file was generated automatically by rusEfi tool ConfigDefinition.jar based on gen_config.bat integration\rusefi_config.txt Sun May 31 14:04:20 EDT 2020
|
||||
|
||||
// by class com.rusefi.output.FileJavaFieldsConsumer
|
||||
import com.rusefi.config.*;
|
||||
|
@ -1007,6 +1007,7 @@ public class Fields {
|
|||
public static final String PROTOCOL_ENGINE_SNIFFER = "wave_chart";
|
||||
public static final String PROTOCOL_ES_DOWN = "d";
|
||||
public static final String PROTOCOL_ES_UP = "u";
|
||||
public static final String PROTOCOL_HELLO_PREFIX = "***";
|
||||
public static final String PROTOCOL_HIP_NAME = "HIP";
|
||||
public static final String PROTOCOL_INJ1_SHORT_NAME = "i1";
|
||||
public static final String PROTOCOL_MSG = "msg";
|
||||
|
|
Binary file not shown.
|
@ -56,7 +56,7 @@ public class VariableRegistry {
|
|||
}
|
||||
value = applyVariables(value);
|
||||
int multPosition = value.indexOf(MULT_TOKEN);
|
||||
if (multPosition != -1) {
|
||||
if (!isQuoted(value, '"') && multPosition != -1) {
|
||||
Integer first = Integer.valueOf(value.substring(0, multPosition));
|
||||
Integer second = Integer.valueOf(value.substring(multPosition + 1));
|
||||
value = String.valueOf(first * second);
|
||||
|
|
|
@ -52,6 +52,17 @@ public class ConfigFieldParserTest {
|
|||
assertEquals(16, TypesHelper.getElementSize(state, "pid_s"));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void manyStartAreNotMultiplication() throws IOException {
|
||||
String test = "struct pid_s\n" +
|
||||
"#define ERROR_BUFFER_SIZE \"***\"\n" +
|
||||
"end_struct\n" +
|
||||
"";
|
||||
VariableRegistry.INSTANCE.clear();
|
||||
BufferedReader reader = new BufferedReader(new StringReader(test));
|
||||
new ReaderState().readBufferedReader(reader, Collections.emptyList());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void multiplicationInDefine() throws IOException {
|
||||
String test = "struct pid_s\n" +
|
||||
|
|
Loading…
Reference in New Issue