Skip to content

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

Closed
wants to merge 2 commits into from
Closed

Modify LED error sequence to be more recognisable #4883

wants to merge 2 commits into from

Conversation

ghost
Copy link

@ghost ghost commented Aug 9, 2017

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

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.
Copy link
Contributor

@0xc0170 0xc0170 left a 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

@theotherjimmy
Copy link
Contributor

theotherjimmy commented Aug 10, 2017

@scartmell-arm Could you also remove "ERROR_*" from the device_has keys in targets/targets.json?

@ghost
Copy link
Author

ghost commented Aug 10, 2017

@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.

@theotherjimmy
Copy link
Contributor

@scartmell-arm From the description of your PR, I would expect to see only one pattern used.

@ghost
Copy link
Author

ghost commented Aug 11, 2017

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.

@0xc0170
Copy link
Contributor

0xc0170 commented Aug 11, 2017

@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.

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).

@theotherjimmy
Copy link
Contributor

@0xc0170 You are correct. I have a hidden (no longer I suppose) agenda to remove those stinking ERROR_* things from targets.json. If you look, my linting tool calls all of them problems.

@0xc0170
Copy link
Contributor

0xc0170 commented Aug 14, 2017

Any voices against having one unified LED error sequence?

@ghost ghost closed this Aug 16, 2017
@sg- sg- removed the needs: work label Aug 16, 2017
@0xc0170
Copy link
Contributor

0xc0170 commented Aug 16, 2017

Why this was closed @scartmell-arm ? Please always provide a reason (for any update, closure, etc)

@ghost
Copy link
Author

ghost commented Aug 16, 2017

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
@theotherjimmy
Copy link
Contributor

@scartmell-arm Why do you want to change the branch name? Could you just rebase this branch and push new changes?

@ghost ghost reopened this Aug 16, 2017
@ghost
Copy link
Author

ghost commented Aug 16, 2017

@theotherjimmy Apparently yes.

@theotherjimmy
Copy link
Contributor

To the latter question I suppose.

@theotherjimmy
Copy link
Contributor

OH, this was from your master. I understand closing it. I don't know how I missed that before.

@ghost
Copy link
Author

ghost commented Aug 16, 2017

@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.

@theotherjimmy
Copy link
Contributor

@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.

@ghost
Copy link
Author

ghost commented Aug 16, 2017

Thanks. In which case, closing this PR and continuing the work in #4920

@ghost ghost closed this Aug 16, 2017
This pull request was closed.
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.

3 participants