From 24733f586c93539419bed920b389b7360026e3df Mon Sep 17 00:00:00 2001 From: rusefi Date: Fri, 12 Apr 2019 20:35:02 -0400 Subject: [PATCH] smarter PWM API - need to pass arbitrary pointer --- unit_tests/tests/test_pwm_generator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unit_tests/tests/test_pwm_generator.cpp b/unit_tests/tests/test_pwm_generator.cpp index dc6c3e6b2d..a1c1588aec 100644 --- a/unit_tests/tests/test_pwm_generator.cpp +++ b/unit_tests/tests/test_pwm_generator.cpp @@ -17,7 +17,7 @@ extern int timeNowUs; static int expectedTimeOfNextEvent; static int pinValue = -1; -static void testApplyPinState(PwmConfig *state, int stateIndex) { +static void testApplyPinState(int stateIndex, PwmConfig *state) /* pwm_gen_callback */ { pinValue = state->multiWave.getChannelState(/*channelIndex*/0, stateIndex); printf("PWM_test: setPinValue=%d @ timeNow=%d\r\n", pinValue, timeNowUs);