Skip to content

Conversation

@maribu
Copy link
Member

@maribu maribu commented Jan 30, 2025

Contribution description

  • Do not hard code the number of the CAN interface to use. (This also allows specifying it via make command line / environment variable.)
  • Make less use of preprocessor and rely on compiler to eliminate dead branches and unused variables.

Testing procedure

The test should behave as before. (Unless one would pass e.g. CAN_DEV=1, in which case the 2nd CAN interface would be used instead of the first.)

Issues/PRs references

None

@maribu maribu added Area: tests Area: tests and testing framework Type: cleanup The issue proposes a clean-up / The PR cleans-up parts of the codebase / documentation CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR labels Jan 30, 2025
@riot-ci
Copy link

riot-ci commented Jan 30, 2025

Murdock results

✔️ PASSED

780a02e tests/drivers/candev: minor cleanup

Success Failures Total Runtime
18 0 18 01m:23s

Artifacts

@maribu maribu force-pushed the tests/drivers/candev branch from 99715d7 to 8d0ac30 Compare January 30, 2025 10:06
@maribu maribu force-pushed the tests/drivers/candev branch from 5bd3412 to e6ad4dd Compare April 1, 2025 17:46
@maribu maribu enabled auto-merge April 2, 2025 15:25
@maribu maribu force-pushed the tests/drivers/candev branch 2 times, most recently from 97c65f8 to 71b4afc Compare April 5, 2025 18:08
@maribu maribu added this pull request to the merge queue Apr 5, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Apr 5, 2025
Copy link
Contributor

@kfessel kfessel left a comment

Choose a reason for hiding this comment

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

squash and go

- Do not hard code the number of the CAN interface to use. (This
  also allows specifying it via make command line / environment
  variable.)
- Make less use of preprocessor and rely on compiler to eliminate dead
  branches and unused variables.

Co-authored-by: crasbe <crasbe@gmail.com>
@maribu maribu force-pushed the tests/drivers/candev branch from d8bfccd to 780a02e Compare April 6, 2025 18:19
@maribu maribu enabled auto-merge April 6, 2025 18:20
@maribu maribu added this pull request to the merge queue Apr 6, 2025
Merged via the queue into RIOT-OS:master with commit a970300 Apr 6, 2025
25 checks passed
@mguetschow mguetschow added this to the Release 2025.04 milestone Apr 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: tests Area: tests and testing framework CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Type: cleanup The issue proposes a clean-up / The PR cleans-up parts of the codebase / documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants