[hal] Correct maximum length of DS console send (#7057)

This commit is contained in:
Thad House
2024-09-08 22:00:04 -07:00
committed by GitHub
parent 43c2409366
commit dcce108b75

View File

@@ -272,10 +272,10 @@ int32_t HAL_SendError(HAL_Bool isError, int32_t errorCode, HAL_Bool isLVCode,
std::string_view locationRef{location};
std::string_view callStackRef{callStack};
// 1 tag, 4 timestamp, 2 seqnum
// 2 size, 1 tag, 4 timestamp, 2 seqnum
// 2 numOccur, 4 error code, 1 flags, 6 strlen
// 1 extra needed for padding on Netcomm end.
size_t baseLength = 21;
size_t baseLength = 23;
if (baseLength + detailsRef.size() + locationRef.size() +
callStackRef.size() <=