From ae336d2dff6db49313c1805ce9325776d3d3e547 Mon Sep 17 00:00:00 2001 From: Florian Guggi Date: Sun, 21 Jan 2024 21:36:29 +0100 Subject: [PATCH] Adjust max CEP packet size to 11kB --- src/communication/cep.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/communication/cep.rs b/src/communication/cep.rs index 46b5749..5b7ce63 100644 --- a/src/communication/cep.rs +++ b/src/communication/cep.rs @@ -19,7 +19,7 @@ pub enum CEPPacketHeader { } impl CEPPacket { - pub const MAXIMUM_DATA_LENGTH: usize = 11000; + pub const MAXIMUM_DATA_LENGTH: usize = 11 * 1024; pub const MAXIMUM_PACKET_LENGTH: usize = 7 + Self::MAXIMUM_DATA_LENGTH; const CRC: Crc = Crc::::new(&CRC_32_MPEG_2);