Skip to content

Conversation

@rzblue
Copy link
Member

@rzblue rzblue commented Dec 24, 2025

No description provided.

@rzblue rzblue requested a review from a team as a code owner December 24, 2025 20:25
@github-actions github-actions bot added component: glass Glass app and backend 2027 2027 target labels Dec 24, 2025
wpi::nt::StartDSClient(m_inst, m_port);
}
} else if (m_mode == 3) {
} else if (m_mode == 2) {
Copy link
Member

Choose a reason for hiding this comment

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

probably all of these numbers should be using NT_NET_MODE_*?

Copy link
Member Author

@rzblue rzblue Dec 25, 2025

Choose a reason for hiding this comment

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

They correspond with the indices of the values in the enum chooser array here, so I don't think using the NT mode enum is the right choice. Totally agree it'd be better if these weren't magic numbers, but I'm not sure how to link the selection result back to the input choices with the current api shape.
Perhaps EnumSetting should take an array of pairs of (display string, value)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2027 2027 target component: glass Glass app and backend

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants