Reduce RAM used for trigger shape definition #731

This commit is contained in:
rusefi 2019-04-03 12:16:27 -04:00
parent 0121a7bc5b
commit 541d0b8a9f
1 changed files with 4 additions and 1 deletions

View File

@ -22,10 +22,13 @@ void SingleWave::init(pin_state_t *pinStates) {
} }
pin_state_t SingleWave::getState(int switchIndex) { pin_state_t SingleWave::getState(int switchIndex) {
return pinStates[switchIndex]; pin_state_t state = pinStates[switchIndex];
efiAssertVoid(OBD_PCM_Processor_Fault, state == 0 || state == 1, "wave state get");
return state;
} }
void SingleWave::setState(int switchIndex, pin_state_t state) { void SingleWave::setState(int switchIndex, pin_state_t state) {
efiAssertVoid(OBD_PCM_Processor_Fault, state == 0 || state == 1, "wave state set");
pinStates[switchIndex] = state; pinStates[switchIndex] = state;
} }