Skip to content

Commit

Permalink
Update the RDM PDU to the released standard version
Browse files Browse the repository at this point in the history
  • Loading branch information
peternewman committed Feb 24, 2024
1 parent eb97fb4 commit 40ff84c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion libs/acn/RDMPDU.cpp
Expand Up @@ -47,7 +47,7 @@ void RDMPDU::PackData(ola::io::OutputStream *stream) const {
void RDMPDU::PrependPDU(ola::io::IOStack *stack) {
uint8_t vector = HostToNetwork(ola::rdm::START_CODE);
stack->Write(reinterpret_cast<uint8_t*>(&vector), sizeof(vector));
PrependFlagsAndLength(stack);
PrependFlagsAndLength(stack, VFLAG_MASK | HFLAG_MASK | DFLAG_MASK, true);
}
} // namespace acn
} // namespace ola
2 changes: 1 addition & 1 deletion libs/acn/RDMPDUTest.cpp
Expand Up @@ -161,7 +161,7 @@ void RDMPDUTest::testPrepend() {
uint8_t *buffer = new uint8_t[length];
OLA_ASSERT(stack.Read(buffer, length));

const uint8_t expected_data[] = {0x70, 3, TEST_VECTOR};
const uint8_t expected_data[] = {0xf0, 0, 4, TEST_VECTOR};
OLA_ASSERT_DATA_EQUALS(expected_data, sizeof(expected_data), buffer, length);
delete[] buffer;
}
Expand Down

0 comments on commit 40ff84c

Please sign in to comment.