only: not square tables

This commit is contained in:
Andrey 2023-10-25 10:47:43 -04:00 committed by rusefillc
parent 381b2977c4
commit 2e39802590
3 changed files with 4 additions and 3 deletions

View File

@ -111,7 +111,7 @@ void miataNAcommonEngineSettings() {
setCommonNTCSensor(&engineConfiguration->clt, 2700);
setCommonNTCSensor(&engineConfiguration->iat, 2700);
#if IGN_LOAD_COUNT == DEFAULT_IGN_LOAD_COUNT
#if IGN_LOAD_COUNT == DEFAULT_IGN_LOAD_COUNT && IGN_RPM_COUNT == DEFAULT_IGN_RPM_COUNT
copyTable(config->ignitionTable, mapBased16IgnitionTable);
#endif

View File

@ -103,7 +103,7 @@ const float mazda_miata_nb2_LoadBins[FUEL_LOAD_COUNT] = {20.0, 25.0, 30.0, 35.0,
;
#endif
#if IGN_LOAD_COUNT == DEFAULT_IGN_LOAD_COUNT
#if (IGN_RPM_COUNT == DEFAULT_IGN_RPM_COUNT) && (IGN_LOAD_COUNT == DEFAULT_IGN_LOAD_COUNT)
static const float ignition18vvtRpmBins[IGN_RPM_COUNT] = {
700.0, 850.0 , 943.0 ,
1112.0 , 1310.0 , 1545.0 ,
@ -306,7 +306,7 @@ static void setCommonMazdaNB() {
copyArray(config->veLoadBins, mazda_miata_nb2_LoadBins);
#endif
#if (IGN_RPM_COUNT == DEFAULT_IGN_LOAD_COUNT) && (IGN_LOAD_COUNT == DEFAULT_IGN_LOAD_COUNT)
#if (IGN_RPM_COUNT == DEFAULT_IGN_RPM_COUNT) && (IGN_LOAD_COUNT == DEFAULT_IGN_LOAD_COUNT)
copyTable(config->veTable, mapBased18vvtVeTable_NB_fuel_rail);
copyArray(config->ignitionRpmBins, ignition18vvtRpmBins);
copyArray(config->ignitionLoadBins, ignition18vvtLoadBins);

View File

@ -3,6 +3,7 @@
# file gen_config_board.sh
# for example ./gen_config_board.sh config/boards/hellen/hellen128 hellen128 rusefi_hellen128mercedes.ini
# or ./gen_config_board.sh config/boards/hellen/hellen128 hellen128
# or ./gen_config_board.sh config/boards/atlas atlas
# which is short for ./gen_config_board.sh config/boards/hellen/hellen128 hellen128 rusefi_hellen128.ini
set -e