1
0
Fork 0

maintain a general status register

This commit is contained in:
Kevin Matz 2023-05-21 13:58:16 -04:00
parent b25cdb102b
commit 877700625f
2 changed files with 3 additions and 1 deletions

View File

@ -37,6 +37,7 @@ namespace ARTNET {
Device::Device(Style style)
: styleCode(style)
, diagnostic_reporting_threshold(DpCritial)
, device_status {.rdm_capable=true, .authority=AuthorityUnused}
, _shortName("OpenLCP Device")
, _longName("Generic OpenLCP Art-Net Device")
, _report_code(RcPowerOk)
@ -416,7 +417,7 @@ void Device::txArtPollReply()
/// \todo complete data field population of ArtPollReply
// reply->net_sub_switch = ;
// reply->ubea_version = ;
// reply->status = ;
reply->status = device_status;
reply->short_name = _shortName;
reply->long_name = _longName;
reply->set_report(_report_code, _poll_reply_count, _report_text);

View File

@ -57,6 +57,7 @@ public:
protected:
TalkToMe diagnostic_reporting_behavior; //!< behavior flags
Priority diagnostic_reporting_threshold; //!< lowest priority dignostic message to send
GeneralStatus device_status; //!< general status register
void send(const std::shared_ptr<Packet> packet, const ipAddress &) const;
void setReport(const NodeReport, const std::string &);