-
Notifications
You must be signed in to change notification settings - Fork 56
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
base: master
Are you sure you want to change the base?
Conversation
firmware/main.cpp
Outdated
@@ -60,7 +61,11 @@ int main() { | |||
/* TODO: show EGT errors */ | |||
auto fault = GetCurrentFault(0); | |||
|
|||
if (fault == Fault::None) | |||
if (isTxIssue()) { |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
firmware/main.cpp
Outdated
// 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) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
format
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed?
a1ddaa2
to
d0d51f0
Compare
d0d51f0
to
389cf57
Compare
389cf57
to
d20c0a6
Compare
No description provided.