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

Completed tasks #290

Closed
wants to merge 6 commits into from
Closed

Completed tasks #290

wants to merge 6 commits into from

Conversation

HermanG05
Copy link

Completed tasks from FW 101 to 103.

LOG_DEBUG("Write to queue failed!");
}
to_send++;
if (to_send >= QUEUE_LEN) {
Copy link
Member

Choose a reason for hiding this comment

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

The queue sending is correct but this check needs to be fixed. You shouldn't break out of a Tasks while(true) loop

Having all of the logic under a if (to_send < QUEUE_LEN) would work

gpio_toggle_state(&addr3);
delay_ms(1000);
gpio_toggle_state(&addr4);
delay_ms(1000);
Copy link
Member

Choose a reason for hiding this comment

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

Notify check is good!

But all of the gpio_toggle logic should be placed inside of the if(check). Check will return true only if the interrupt is triggered, which is when the gpio's should be toggled. There is also no reason for a 1sec delay after each toggle

Also the buttonAddr cannot and does not need to be toggled, its an input pin.

@Akashem06 Akashem06 closed this Jul 29, 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.

2 participants