better state validation

This commit is contained in:
rusefi 2018-12-08 16:31:46 -05:00
parent 08c8df962b
commit 3efedc9c95
1 changed files with 2 additions and 0 deletions

View File

@ -18,6 +18,7 @@
* If not, see <http://www.gnu.org/licenses/>.
*/
#include "global.h"
#include "trigger_structure.h"
#include "trigger_decoder.h"
@ -164,6 +165,7 @@ int multi_wave_s::findAngleMatch(float angle, int size) const {
}
void multi_wave_s::setSwitchTime(int index, float value) {
efiAssertVoid(CUSTOM_ERR_6690, switchTimes != NULL, "switchTimes");
switchTimes[index] = value;
}