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

report TX error condition with special LED state #316

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

rusefillc
Copy link
Contributor

No description provided.

@rusefillc rusefillc changed the title report TX error condition report TX error condition with special LED state Apr 24, 2024
@@ -60,7 +61,11 @@ int main() {
/* TODO: show EGT errors */
auto fault = GetCurrentFault(0);

if (fault == Fault::None)
if (isTxIssue()) {
Copy link
Owner

Choose a reason for hiding this comment

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

why not register a fault using the existing fault infra?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

because blink-encoding is hard for humans

// temporary solution: light up both LEDs in case of TX error
palSetPad(LED_BLUE_PORT, LED_BLUE_PIN);
palSetPad(LED_BLUE_PORT, LED_GREEN_PIN);
} else if (fault == Fault::None)
Copy link
Owner

Choose a reason for hiding this comment

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

format

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed?

rusefillc added a commit to rusefi/wideband that referenced this pull request Apr 24, 2024
rusefillc added a commit to rusefi/wideband that referenced this pull request Apr 24, 2024
rusefillc added a commit to rusefi/wideband that referenced this pull request Apr 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants