Skip to content

Commit

Permalink
Fix some minor comments
Browse files Browse the repository at this point in the history
  • Loading branch information
peternewman committed Mar 25, 2024
1 parent baf60c9 commit a58d5e6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion include/ola/e133/E133Enums.h
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ enum {
MAX_E133_STATUS_STRING_SIZE = 64
};

// The E1.33 version..
// The E1.33 version.
enum {
E133_VERSION = 1
};
Expand Down
6 changes: 4 additions & 2 deletions libs/acn/BrokerPDU.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,9 @@ unsigned int BrokerPDU::DataSize() const {
* Pack the data portion.
*/
bool BrokerPDU::PackData(uint8_t *data, unsigned int *length) const {
if (m_pdu)
if (m_pdu) {
return m_pdu->Pack(data, length);
}
*length = 0;
return true;
}
Expand All @@ -53,8 +54,9 @@ bool BrokerPDU::PackData(uint8_t *data, unsigned int *length) const {
* Pack the data into a buffer
*/
void BrokerPDU::PackData(OutputStream *stream) const {
if (m_pdu)
if (m_pdu) {
m_pdu->Write(stream);
}
}


Expand Down

0 comments on commit a58d5e6

Please sign in to comment.