-
Notifications
You must be signed in to change notification settings - Fork 3k
Modify LED error sequence to be more recognisable #4883
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
Conversation
The current error sequence for microcontrollers with less than 4 LEDs is to toggle an LED at a fixed rate. Change the sequence to 4 short pulses followed by 4 long pulses.
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.
+1 for having this distinct pattern
@scartmell-arm Could you also remove "ERROR_*" from the |
@theotherjimmy AFAICT they are still required. There are still two different error sequences, the 4 LED sequence which is run when ERROR_PATTERN key exists, and the fast/slow pulsing one when ERROR_RED key exists. I'm not sure how else you would discern which pattern to use. |
@scartmell-arm From the description of your PR, I would expect to see only one pattern used. |
I changed the text to be a bit more clear. Given that the error sequence for 4 LED boards is already easily distinguishable I don't think it would be reasonable to change it so that all boards use the same sequence. |
I believe @theotherjimmy is up for using one pattern for all, remove not needed ERROR_PATTERN (If i got a new board, which one should I use?). This however needs a big note. Because in case we agree on this, it would change the behavior but unifies it for all boards (most of the boards compile, at least one LED on board). |
@0xc0170 You are correct. I have a hidden (no longer I suppose) agenda to remove those stinking |
Any voices against having one unified LED error sequence? |
Why this was closed @scartmell-arm ? Please always provide a reason (for any update, closure, etc) |
Sorry, I didn't mean to close this, it closed automatically when I renamed the branch this commit was on in my fork. If it's not possible to amend the branch the PR comes from I'll open a new PR and reference this one. |
- Removed the patterned LED sequence, all boards now use the 4 fast pulse, 4 slow pulses LED sequence. - Changed the LED used from LED_RED to LED1. Only 58/174 targets seem to define LED_RED but they all define LED1. - Removed all ERROR_RED and ERROR_PATTERN definitions from targets/targets.json
@scartmell-arm Why do you want to change the branch name? Could you just rebase this branch and push new changes? |
@theotherjimmy Apparently yes. |
To the latter question I suppose. |
OH, this was from your master. I understand closing it. I don't know how I missed that before. |
@theotherjimmy Yes, it was making things slightly awkward. There are now two separate PR's with the same commits but coming from different branches. I suppose it would be best to close the other one as this has the original comment chain. |
@scartmell-arm I understand if you would prefer to close this one as it would simplify your workflow. I'll leave it up to you. |
Thanks. In which case, closing this PR and continuing the work in #4920 |
Changed the LED error sequence for boards with less than 4 LEDs to be more
recognisable. The new sequence is 4 slow pulses followed by 4 fast pulses.
Fixes #1295 LED error patterns