Skip to content

Commit

Permalink
Print to log if expression invalid
Browse files Browse the repository at this point in the history
  • Loading branch information
jfedor2 committed Oct 14, 2024
1 parent 8ff85ca commit aec0fd9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions firmware/src/remapper.cc
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,9 @@ bool is_expr_valid(uint8_t expr) {
void validate_expressions() {
for (uint8_t i = 0; i < NEXPRESSIONS; i++) {
expression_valid[i] = is_expr_valid(i);
if (!expression_valid[i]) {
printf("Expression %d invalid.\n", i + 1);
}
}
}

Expand Down

0 comments on commit aec0fd9

Please sign in to comment.