use static_assert

This commit is contained in:
Matthew Kennedy 2023-03-03 02:13:42 -08:00
parent d8ec197616
commit d2f58dc7c5
1 changed files with 2 additions and 2 deletions

View File

@ -798,9 +798,9 @@ static void resetRunningTriggerCounters() {
}
void onConfigurationChangeTriggerCallback() {
static_assert(std::extent<decltype(engine_configuration_s::camInputs)>::value == std::extent<decltype(engine_configuration_s::vvtOffsets)>::value);
bool changed = false;
// todo: how do we static_assert here?
efiAssertVoid(OBD_PCM_Processor_Fault, efi::size(engineConfiguration->camInputs) == efi::size(engineConfiguration->vvtOffsets), "sizes");
for (size_t camIndex = 0; camIndex < efi::size(engineConfiguration->camInputs); camIndex++) {
changed |= isConfigurationChanged(camInputs[camIndex]);