Skip to content

LED_matrix: move _sequenceDone = true out of if block #42

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

Merged
merged 1 commit into from
Jul 31, 2023

Conversation

KurtE
Copy link
Contributor

@KurtE KurtE commented Jul 10, 2023

Currently if you write a sketch that relies on knowing when a sequence completes, by having your code call sequenceDone(), this will only work if your sketch sets a non-null callback function, as the code that sets the condition is currently in the if block:

if(_callBack != nullptr){

Simply moved the line to after the if block

@CLAassistant
Copy link

CLAassistant commented Jul 10, 2023

CLA assistant check
All committers have signed the CLA.

@KurtE
Copy link
Contributor Author

KurtE commented Jul 10, 2023

CLA assistant check Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

Sorry, I am trying to decide if I will sign such agreement, that one should probably have an attorney review it. Things like:

"By signing in via GitHub acknowledge and agree that (A) your Contribution is your original work."

What does "Original" mean? I simply fixed a problem in the current code base. Is that Original?

But I will think about it.

@KurtE
Copy link
Contributor Author

KurtE commented Jul 28, 2023

Signed, but may want to put a hold on this. Looks like the system picked up the updates to all of the links that had to be patched

Will try to update it to just have the one file with the simple change

Currently if you write a sketch that relies on knowing when a sequence completes, by having
your code call sequenceDone(), this will only work if your sketch sets a non-null callback function,
as the code that sets the condition is currently in the if block:
```
if(_callBack != nullptr){
```
Simply moved the line to after the if block
@KurtE KurtE force-pushed the led_matrix_sequence_done branch from acc9e23 to 675c4db Compare July 28, 2023 13:13
@KurtE
Copy link
Contributor Author

KurtE commented Jul 28, 2023

Fixed to only update the one file

@facchinm facchinm merged commit 9a63d63 into arduino:main Jul 31, 2023
@facchinm
Copy link
Member

Merged, thanks you very much!

@KurtE KurtE deleted the led_matrix_sequence_done branch July 31, 2023 11:46
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