From dcce108b75d246242cbdef4a172d3b4ba75eebfd Mon Sep 17 00:00:00 2001 From: Thad House Date: Sun, 8 Sep 2024 22:00:04 -0700 Subject: [PATCH] [hal] Correct maximum length of DS console send (#7057) --- hal/src/main/native/athena/FRCDriverStation.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hal/src/main/native/athena/FRCDriverStation.cpp b/hal/src/main/native/athena/FRCDriverStation.cpp index 1e2565b009..e3080782b5 100644 --- a/hal/src/main/native/athena/FRCDriverStation.cpp +++ b/hal/src/main/native/athena/FRCDriverStation.cpp @@ -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() <=