Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

don't rely on triggerStateListener to detect trigger errors #4164

Merged
merged 7 commits into from May 13, 2022

Conversation

mck1117
Copy link
Member

@mck1117 mck1117 commented May 11, 2022

Check that various sync problems cause getShaftSynchronized() to return false.

@rusefillc
Copy link
Contributor

once/if we are happy with this change can we merge test-only or mostly-test part first and then merge production code as separate merge?

@mck1117 mck1117 mentioned this pull request May 11, 2022
@mck1117
Copy link
Member Author

mck1117 commented May 11, 2022

once/if we are happy with this change can we merge test-only or mostly-test part first and then merge production code as separate merge?

yeah, I already had to break part off in to #4165

@mck1117 mck1117 mentioned this pull request May 11, 2022
@rusefillc
Copy link
Contributor

This PR has a functional change at the moment? Split one green PR into two green PRs?

@mck1117 mck1117 changed the title proper trigger decoder testing don't rely on triggerStateListener to detect trigger errors May 13, 2022
@@ -141,8 +140,8 @@ TEST(trigger, testNB2CamInput) {

int totalRevolutionCountBeforeVvtSync = 5;
// need to be out of VVT sync to see VVT sync in action
eth.fireRise(25);
eth.fireRise(25);
eth.fireRise(25 * 70 / 180);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hah! Mistake in the test caught by this change.

@mck1117 mck1117 marked this pull request as ready for review May 13, 2022 22:10
@rusefillc rusefillc merged commit ae91b2a into rusefi:master May 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants