anticipate that inheritors may want to supply a pre-filled reply before calling the base class
This commit is contained in:
parent
877700625f
commit
4b71f666e2
|
@ -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 = ;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue