From 99792a0ee111acb94ec6bbbe00af64c51e712113 Mon Sep 17 00:00:00 2001 From: Jonathan Schwartz Date: Tue, 2 Jun 2026 15:10:16 +0000 Subject: [PATCH] Communication: Increase max packet length --- communication/packetizer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/communication/packetizer.cpp b/communication/packetizer.cpp index 3e43fef4..94b1a7a2 100644 --- a/communication/packetizer.cpp +++ b/communication/packetizer.cpp @@ -80,7 +80,7 @@ bool Packetizer::input(RingBuffer& bytes) { * end of the payload. The short packet length, for reference, only encompasses the length of the actual * payload, and not the header or checksum. */ - if(packetLength < 6 || packetLength > 4000) { + if(packetLength < 6 || packetLength > std::numeric_limits::max()) { bytes.pop_front(); EventManager::GetInstance().add(APIEvent::Type::FailedToRead, APIEvent::Severity::Error); state = ReadState::SearchForHeader;