Skip to content

Commit

Permalink
fix 0 size static assert
Browse files Browse the repository at this point in the history
  • Loading branch information
liebman committed Jul 5, 2024
1 parent d6ee8ed commit b306f77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion esp-hal/src/dma/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ macro_rules! dma_descriptors_chunk_size {
($tx_size:expr, $rx_size:expr, $chunk_size:expr) => {{
// these will check for size at compile time
const _: () = assert!($chunk_size <= 4092, "chunk size must be <= 4092");
const _: () = assert!($chunk_size > 9, "chunk size must be > 0");
const _: () = assert!($chunk_size > 0, "chunk size must be > 0");

static mut TX_DESCRIPTORS: [$crate::dma::DmaDescriptor;
($tx_size + $chunk_size - 1) / $chunk_size] =
Expand Down

0 comments on commit b306f77

Please sign in to comment.