diff --git a/firmware/console/binary/generated/readme.md b/firmware/console/binary/generated/readme.md index ee5bbe0ffa..9f709e6685 100644 --- a/firmware/console/binary/generated/readme.md +++ b/firmware/console/binary/generated/readme.md @@ -1 +1,3 @@ LiveDataProcessor.java produces file here based on LiveData.yaml + +See also log_fields_generated.h diff --git a/java_tools/configuration_definition_base/src/test/java/com/rusefi/ldmp/LiveDataProcessorTest.java b/java_tools/configuration_definition_base/src/test/java/com/rusefi/ldmp/LiveDataProcessorTest.java index caacce3a7a..fab8723005 100644 --- a/java_tools/configuration_definition_base/src/test/java/com/rusefi/ldmp/LiveDataProcessorTest.java +++ b/java_tools/configuration_definition_base/src/test/java/com/rusefi/ldmp/LiveDataProcessorTest.java @@ -1,6 +1,7 @@ package com.rusefi.ldmp; import com.rusefi.ReaderProvider; +import com.rusefi.output.SdCardFieldsContent; import org.junit.jupiter.api.Test; import java.io.*; @@ -114,6 +115,16 @@ public class LiveDataProcessorTest { "tempC1Gauge = tempC1,\"WBO: Temperature1\", \"C\", 500.0,1000.0, 500.0,1000.0, 500.0,1000.0, 0,0\n", LiveDataProcessor.GAUGES); + captor.assertOutput("// generated by class com.rusefi.output.SdCardFieldsContent\n" + + "static const LogField fields[] = {\n" + + "{packedTime, GAUGE_NAME_TIME, \"sec\", 0},\n" + + "\t{engine->outputChannels.tempC, \"WBO: Temperature\", \"C\", 0, \"cate\"},\n" + + "\t{engine->outputChannels.esr, \"WBO: ESR\", \"ohm\", 0},\n" + + "\t{engine->outputChannels.oootempC, \"Temperature\", \"C\", 0},\n" + + "\t{engine->outputChannels.oooesr, \"ESR\", \"ohm\", 0},\n" + + "};\n", + SdCardFieldsContent.SD_CARD_OUTPUT_FILE_NAME); + captor.assertOutput("// generated by gen_live_documentation.sh / LiveDataProcessor.java\n" + "#pragma once\n" + "\n" +