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

tab_debug: fixed labels with new array of labels #1

Closed
wants to merge 4 commits into from

Conversation

Lyreplus
Copy link
Contributor

@Lyreplus Lyreplus commented Dec 4, 2023

fixed labels with new array of labels

    • refactor: gitignore modified

@andreolli-davide
Copy link

Nice contribution!!

Copy link
Member

@gmazzucchi gmazzucchi left a comment

Choose a reason for hiding this comment

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

It works, but I think it could be simpler.

Core/UI/steering/racing_tabs/tab_debug.c Show resolved Hide resolved
Core/UI/steering/steering.h Outdated Show resolved Hide resolved
Core/UI/steering/steering.c Outdated Show resolved Hide resolved
Core/UI/steering/racing_tabs/tab_debug.h Outdated Show resolved Hide resolved
Core/UI/steering/steering.c Outdated Show resolved Hide resolved
set_label_color_hv_errors(primary_hv_errors_last_state->errors_eeprom_write, 15);
}

void set_label_color_das_errors(bool label, int i) {
Copy link
Member

Choose a reason for hiding this comment

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

set_label_color_das_errors, set_label_color_hv_errors, set_label_color_lv_errors are all the same. Also set_label_color_hv_feedbacks is similar. Try to write only one function to to all this. The simpler is the function, the better.

@gmazzucchi gmazzucchi closed this May 3, 2024
@gmazzucchi gmazzucchi deleted the minor_fixes branch May 3, 2024 16:54
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.

None yet

4 participants