Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

update MaroonFramework to handle unspecified CAN bus values better #22

Merged
merged 2 commits into from
Jan 30, 2024

Conversation

dejabot
Copy link
Contributor

@dejabot dejabot commented Jan 28, 2024

Description

Currently, if a CANbus property is not specified (eg left as the default of null), that can cause issues with CTRE code finding those devices. CTRE treats "" as the default CAN bus. This change simply passes "" for the CAN bus if not set.

How Has This Been Tested?

Will test on SwerveAndShoot during the week.

@dejabot dejabot requested review from rcahoon and maxspier January 28, 2024 02:39
@dejabot dejabot force-pushed the maroonframework-empty-canbus branch from 6a27825 to 0a9a2b8 Compare January 30, 2024 02:58
@dejabot dejabot merged commit 1ae2b81 into main Jan 30, 2024
3 checks passed
@dejabot dejabot deleted the maroonframework-empty-canbus branch January 30, 2024 20:31
The-Arx pushed a commit that referenced this pull request Feb 10, 2024
* pass empty string for can bus if not set in config

* refactor common code into helper method
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants