LivoxProto1: Pcloud data stream now working

This commit is contained in:
2025-10-23 00:24:23 -04:00
parent a4d99e5d4d
commit 5db1cfdac8
3 changed files with 120 additions and 107 deletions
+1 -2
View File
@@ -714,7 +714,7 @@ StartStopSamplingMessage::StartStopSamplingMessage()
// Initialize header
header.sof = 0xAA;
header.version = 1;
header.length = sizeof(StartStopSamplingMessage) - sizeof(Header) - sizeof(Footer);
header.length = sizeof(StartStopSamplingMessage);
header.cmd_type = 0x02; // MSG type
header.seq_num = 0; // Will be set by caller if needed
header.crc_16 = 0; // Will be calculated
@@ -743,7 +743,6 @@ void StartStopSamplingMessage::swapContentsToProtocolEndianness()
{
header.swapToProtocolEndianness();
command.swapToProtocolEndianness();
footer.swapToProtocolEndianness();
}