Skip to content

Commit

Permalink
Adjust max CEP packet size to 11kB
Browse files Browse the repository at this point in the history
  • Loading branch information
Florian Guggi committed Jan 21, 2024
1 parent a847b9f commit ae336d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/communication/cep.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<u32> = Crc::<u32>::new(&CRC_32_MPEG_2);
Expand Down

0 comments on commit ae336d2

Please sign in to comment.