Including header size in frame size

This commit is contained in:
Ryan Summers 2021-07-26 12:26:10 +02:00
parent 8d4193ed62
commit c0157b7095
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ const HEADER_SIZE: usize = 8;
const FRAME_COUNT: usize = 4;
// The size of each livestream frame in bytes.
const FRAME_SIZE: usize = 1024;
const FRAME_SIZE: usize = 1024 + HEADER_SIZE;
// Static storage used for a heapless::Pool of frame buffers.
static mut FRAME_DATA: [u8; FRAME_SIZE * FRAME_COUNT] =