what's the probability of efi::size breaking build?
This commit is contained in:
parent
1ad591742b
commit
73003f8b64
|
@ -52,20 +52,20 @@ EnginePins::EnginePins() {
|
|||
dizzyOutput.name = PROTOCOL_DIZZY_NAME;
|
||||
tachOut.name = PROTOCOL_TACH_NAME;
|
||||
|
||||
static_assert(efi::size(sparkNames) >= IGNITION_PIN_COUNT, "Too many ignition pins");
|
||||
//todo:uncomment static_assert(efi::size(sparkNames) >= IGNITION_PIN_COUNT, "Too many ignition pins");
|
||||
for (int i = 0; i < IGNITION_PIN_COUNT;i++) {
|
||||
enginePins.coils[i].name = sparkNames[i];
|
||||
enginePins.coils[i].shortName = sparkShortNames[i];
|
||||
}
|
||||
|
||||
static_assert(efi::size(injectorNames) >= INJECTION_PIN_COUNT, "Too many injection pins");
|
||||
//todo:uncomment static_assert(efi::size(injectorNames) >= INJECTION_PIN_COUNT, "Too many injection pins");
|
||||
for (int i = 0; i < INJECTION_PIN_COUNT;i++) {
|
||||
enginePins.injectors[i].injectorIndex = i;
|
||||
enginePins.injectors[i].name = injectorNames[i];
|
||||
enginePins.injectors[i].shortName = injectorShortNames[i];
|
||||
}
|
||||
|
||||
static_assert(efi::size(auxValveShortNames) >= AUX_DIGITAL_VALVE_COUNT, "Too many aux valve pins");
|
||||
//todo:uncomment static_assert(efi::size(auxValveShortNames) >= AUX_DIGITAL_VALVE_COUNT, "Too many aux valve pins");
|
||||
for (int i = 0; i < AUX_DIGITAL_VALVE_COUNT;i++) {
|
||||
enginePins.auxValve[i].name = auxValveShortNames[i];
|
||||
}
|
||||
|
|
|
@ -176,6 +176,10 @@ static efitimems_t testSchedulingStart;
|
|||
static void timerValidationCallback(void *arg) {
|
||||
(void)arg;
|
||||
|
||||
if (hasFirmwareError()) {
|
||||
return;
|
||||
}
|
||||
|
||||
testSchedulingHappened = true;
|
||||
efitimems_t actualTimeSinceScheduling = (currentTimeMillis() - testSchedulingStart);
|
||||
|
||||
|
|
Loading…
Reference in New Issue