1
0
Fork 0

anticipate that inheritors may want to supply a pre-filled reply before calling the base class

This commit is contained in:
Kevin Matz 2023-05-21 14:05:19 -04:00
parent 877700625f
commit 4b71f666e2
2 changed files with 6 additions and 3 deletions

View File

@ -410,10 +410,13 @@ void Device::rxArtTrigger(std::shared_ptr<ArtTrigger> packet)
/**
* @brief Device::txArtPollReply
* @param reply
*/
void Device::txArtPollReply()
void Device::txArtPollReply(std::shared_ptr<pollreply_data> reply)
{
auto reply = std::make_shared<pollreply_data>();
if (!reply)
reply = std::make_shared<pollreply_data>();
/// \todo complete data field population of ArtPollReply
// reply->net_sub_switch = ;
// reply->ubea_version = ;

View File

@ -84,7 +84,7 @@ protected:
virtual void rxArtTimeCode(std::shared_ptr<ArtTimeCode>);
virtual void rxArtTrigger(std::shared_ptr<ArtTrigger>);
void txArtPollReply();
virtual void txArtPollReply(std::shared_ptr<pollreply_data> = nullptr);
virtual void txArtDiagData();
virtual std::array<uint8_t, 6> deviceMac() const;