Skip to content

add lynx module port claiming and better error messages - #40

Merged
28shettr merged 6 commits into
NextFTC:mainfrom
28shettr:error-fix
Sep 21, 2026
Merged

28shettr merged 6 commits into
NextFTC:mainfrom
28shettr:error-fix

Conversation

@28shettr

Copy link
Copy Markdown
Member

No description provided.

@zachwaffle4 zachwaffle4 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

this makes the constructors kinda ugly, I would like a better way to do it if possible

private val usedPorts by LazyHardware { HashSet<String>() }

/** Throws if this port is already used on this hub. */
internal fun claimPort(kind: String, port: Int) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

kind should be an enum.

@zachwaffle4 zachwaffle4 changed the title Added better error messaging when two ports are being called add lynx module port claiming and better error messages Sep 20, 2026
@28shettr
28shettr merged commit 82f19ff into NextFTC:main Sep 21, 2026
2 checks passed
@28shettr
28shettr deleted the error-fix branch September 21, 2026 23:53
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