From fcbfe3b57b8a8d107551fa194c33d62d23ed42a4 Mon Sep 17 00:00:00 2001 From: nullstalgia Date: Wed, 9 Aug 2023 19:34:21 -0700 Subject: [PATCH] Correct issues stopping ESP from hearing packet --- src/network/connection.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/network/connection.cpp b/src/network/connection.cpp index a313407f2..d61d2bcf1 100644 --- a/src/network/connection.cpp +++ b/src/network/connection.cpp @@ -713,14 +713,14 @@ void Connection::update() { } case PACKET_RECEIVE_LED_OFFSET: { - // Packet type (4) + Packet number (8) + offset in ms (32) - if (len < 44) { + // Packet type (4) + Packet number (8) + offset in ms (4) + if (len < 16) { m_Logger.warn("Invalid LED offset packet: too short"); break; } - //uint32_t offset = convert_chars(&m_Packet[12]); - //ledManager.resetPatternWithOffset(offset); + uint32_t offset = convert_chars(&m_Packet[12]); + ledManager.resetPatternWithOffset(offset); break; }