Skip to content

Conversation

@christian-schilling
Copy link
Contributor

No description provided.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR refactors the sendResponsePending functionality from a member function to a free function, improving testability and reducing coupling between components.

  • Extracted response pending logic into two free functions: buildResponsePendingTransportMessage and sendResponsePending
  • Updated three call sites to use the new free functions
  • Removed _pendingMessage initialization from constructor since the message is now built on demand

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
libs/bsw/uds/src/uds/connection/IncomingDiagConnection.cpp Added two new free functions (buildResponsePendingTransportMessage and sendResponsePending), removed the old member function implementation, and updated three call sites to use the new pattern
libs/bsw/uds/include/uds/connection/IncomingDiagConnection.h Removed member function declaration and removed _pendingMessage initialization from constructor

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@rolandreichweinbmw rolandreichweinbmw merged commit efe2613 into eclipse-openbsw:main Nov 25, 2025
136 of 264 checks passed
@christian-schilling christian-schilling deleted the @changes/main/[email protected]/free-pending branch November 28, 2025 10:39
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.

3 participants