refactoring: reducing complexity? handling trigger same as everything else?
only:uaefi
This commit is contained in:
parent
ce32b2ff48
commit
c8ed6374b3
|
@ -1,5 +1,4 @@
|
|||
! technically that's PWM_PHASE_MAX_WAVE_PER_PWM * 2
|
||||
#define HW_EVENT_TYPES 4
|
||||
|
||||
|
||||
struct_no_prefix trigger_central_s
|
||||
|
||||
|
|
|
@ -161,9 +161,7 @@ Usages:
|
|||
- name: trigger_central
|
||||
java: TriggerCentral.java
|
||||
folder: controllers/trigger
|
||||
withCDefines: true
|
||||
# something special about 'error: "ts_show_vbatt" redefined'' why is trigger.h special?
|
||||
# prepend: integration/rusefi_config.txt
|
||||
prepend: integration/rusefi_config_shared.txt
|
||||
constexpr: "engine->triggerCentral"
|
||||
conditional_compilation: "EFI_SHAFT_POSITION_INPUT"
|
||||
|
||||
|
|
|
@ -21,6 +21,9 @@
|
|||
#define PACK_MULT_FUEL_FLOW 200
|
||||
#define PACK_MULT_VSS 100
|
||||
|
||||
! technically that's PWM_PHASE_MAX_WAVE_PER_PWM * 2
|
||||
#define HW_EVENT_TYPES 4
|
||||
|
||||
#define STFT_BANK_COUNT 2
|
||||
|
||||
#define TCU_GEAR_COUNT 10
|
||||
|
|
|
@ -260,10 +260,8 @@ public class LiveDataProcessor {
|
|||
if (cppFileName == null)
|
||||
cppFileName = name;
|
||||
String conditional = (String) entry.get("conditional_compilation");
|
||||
Boolean withCDefines = (Boolean) entry.get("withCDefines");
|
||||
Boolean isPtr = (Boolean) entry.get("isPtr");
|
||||
// Defaults to false if not specified
|
||||
withCDefines = withCDefines != null && withCDefines;
|
||||
boolean withCDefines = false;
|
||||
isPtr = isPtr != null && isPtr;
|
||||
|
||||
Object outputNames = entry.get("output_name");
|
||||
|
|
Loading…
Reference in New Issue