SD card is missing "ETB average duty0" field #6720

only: test
This commit is contained in:
rusefillc 2024-07-16 11:36:47 -04:00
parent cac8626d46
commit 21f028c0b4
2 changed files with 13 additions and 0 deletions

View File

@ -1 +1,3 @@
LiveDataProcessor.java produces file here based on LiveData.yaml
See also log_fields_generated.h

View File

@ -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" +