Skip to content

Feedback#1

Open
github-classroom[bot] wants to merge 16 commits into
feedbackfrom
master
Open

Feedback#1
github-classroom[bot] wants to merge 16 commits into
feedbackfrom
master

Conversation

@github-classroom
Copy link
Copy Markdown

@github-classroom github-classroom Bot commented Sep 16, 2022

👋! GitHub Classroom created this pull request as a place for your teacher to leave feedback on your work. It will update automatically. Don’t close or merge this pull request, unless you’re instructed to do so by your teacher.
In this pull request, your teacher can leave comments and feedback on your code. Click the Subscribe button to be notified if that happens.
Click the Files changed or Commits tab to see all of the changes pushed to master since the assignment started. Your teacher can see this too.

Notes for teachers

Use this PR to leave feedback. Here are some tips:

  • Click the Files changed tab to see all of the changes pushed to master since the assignment started. To leave comments on specific lines of code, put your cursor over a line of code and click the blue + (plus sign). To learn more about comments, read “Commenting on a pull request”.
  • Click the Commits tab to see the commits pushed to master. Click a commit to see specific changes.
  • If you turned on autograding, then click the Checks tab to see the results.
  • This page is an overview. It shows commits, line comments, and general comments. You can leave a general comment below.
    For more information about this pull request, read “Leaving assignment feedback in GitHub”.

Subscribed: @LidiaDomingos @listerogusuku

Copy link
Copy Markdown

@rafaelcorsi rafaelcorsi left a comment

Choose a reason for hiding this comment

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

pessoal parabéns pela entrega, gostei bastante, sem grandes comentários de código. Abraços, corsi

Comment thread firmware/src/main.c
BaseType_t xHigherPriorityTaskWoken = pdFALSE;
volatile Data data;
data.id = '1';
data.value = 0;
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

eu não entendi o uso do data.value, se o que importa é o ID.

Comment thread firmware/src/main.c
Comment on lines +781 to +795
if (data.value == 0){
if (data.button == '1' || data.button == '2' || data.button == '3' || data.button == '4'){
pio_set(LED_PIO_BLUE, LED_IDX_MASK_BLUE);
}
else if (data.button == 'A' || data.button == 'B' || data.button == 'C' || data.button == 'D') {
pio_clear(LED_PIO_BLUE, LED_IDX_MASK_BLUE);
}
if (data.button == '5' || data.button == '6' || data.button == '7' || data.button == '8'){
pio_set(LED_PIO_RED, LED_IDX_MASK_RED);
}
else if (data.button == 'E' || data.button == 'F' || data.button == 'G' || data.button == 'H') {
pio_clear(LED_PIO_RED, LED_IDX_MASK_RED);
}
send_package(data);
}
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

deve ter um jeito mais elegante de fazer isso, pelo menos encapsular em uma função já da uma melhorada. Não é algo que precisa mexer agora.

Comment thread firmware/src/main.c
valor_anterior_x = data.value;
}
}
if (data.id == 'J'){
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

o ideal é usar else if

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