Skip to content

Conversation

@michaelosthege
Copy link
Contributor

@michaelosthege michaelosthege commented Dec 21, 2025

  • _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
Copy link
Contributor Author

michaelosthege commented Jan 7, 2026

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
Copy link
Collaborator

cpr-bar commented Jan 12, 2026

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