From ba3d48234034e7fc3b45072d1af2962654756327 Mon Sep 17 00:00:00 2001 From: rusefillc Date: Mon, 21 Nov 2022 00:10:35 -0500 Subject: [PATCH] What is "Aux PID"? #4807 --- firmware/controllers/actuators/gppwm/gppwm.cpp | 2 +- firmware/controllers/actuators/vvt.cpp | 2 +- unit_tests/logicdata.cpp | 4 +--- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/firmware/controllers/actuators/gppwm/gppwm.cpp b/firmware/controllers/actuators/gppwm/gppwm.cpp index 73fdfea518..8f0a6de087 100644 --- a/firmware/controllers/actuators/gppwm/gppwm.cpp +++ b/firmware/controllers/actuators/gppwm/gppwm.cpp @@ -19,7 +19,7 @@ static gppwm_Map3D_t* tables[] = { &table4, }; -static char channelNames[GPPWM_CHANNELS][8] = { "GPPWM#1", +static const char *channelNames[GPPWM_CHANNELS] = { "GPPWM#1", "GPPWM#2", "GPPWM#3", "GPPWM#4", diff --git a/firmware/controllers/actuators/vvt.cpp b/firmware/controllers/actuators/vvt.cpp index 52cbdaf746..e7b47b2797 100644 --- a/firmware/controllers/actuators/vvt.cpp +++ b/firmware/controllers/actuators/vvt.cpp @@ -122,7 +122,7 @@ void VvtController::setOutput(expected outputValue) { #if EFI_AUX_PID -static char vvtOutputNames[CAM_INPUTS_COUNT][13] = { +static const char *vvtOutputNames[CAM_INPUTS_COUNT] = { "Vvt Output#1", #if CAM_INPUTS_COUNT > 1 "Vvt Output#2", diff --git a/unit_tests/logicdata.cpp b/unit_tests/logicdata.cpp index bb5b36bcd4..01cd96374c 100644 --- a/unit_tests/logicdata.cpp +++ b/unit_tests/logicdata.cpp @@ -36,9 +36,7 @@ #define numChannels 6 #define reservedDurationInSamples 10 -#define MAX_STRING_SIZE 40 - -static char channelNames[][MAX_STRING_SIZE] = { "Primary", "Secondary", "TDC", +static const char *channelNames[] = { "Primary", "Secondary", "TDC", "Sync", "Coil", "Injector", "Channel 6", "Channel 7" }; static int CHANNEL_FLAGS[] = { 0x13458b, 0x0000ff, 0x00a0f9, 0x00ffff, 0x00ff00,