Skip to content

Simplify branching in command functions#25

Merged
cpr-bar merged 3 commits into
CommonplaceRobotics:masterfrom
JuBiotech:simplify-branching
Jan 12, 2026
Merged

Simplify branching in command functions#25
cpr-bar merged 3 commits into
CommonplaceRobotics:masterfrom
JuBiotech:simplify-branching

Conversation

@michaelosthege

@michaelosthege michaelosthege commented Dec 21, 2025

Copy link
Copy Markdown
Contributor
  • _send_command never returns None, therefore many branches were unreachable
  • Changed _wait_for_answer to accept message_id as str | int, making it easier to call
  • Changed _wait_for_answer with timeout: float | None = DEFAULT such that the runtime-configurable DEFAULT_ANSWER_TIMEOUT is used by default.

@michaelosthege

michaelosthege commented Jan 7, 2026

Copy link
Copy Markdown
Contributor Author

Hi @cpr-bar, happy new year!

I implemented some of the refactoring we discussed in December. If we can get this merged I can proceed with context manager or async refactoring.

@cpr-bar

cpr-bar commented Jan 12, 2026

Copy link
Copy Markdown
Collaborator

Hi @michaelosthege and also a happy new year,

thanks for the simplifications.

@cpr-bar cpr-bar merged commit 1b2940f into CommonplaceRobotics:master Jan 12, 2026
4 checks passed
@michaelosthege michaelosthege deleted the simplify-branching branch January 12, 2026 11:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants