From 356c3aefe29d1fca630d98a9fd040a1bca198037 Mon Sep 17 00:00:00 2001 From: occheung Date: Mon, 18 Jan 2021 15:32:32 +0800 Subject: [PATCH] lib: reduce stack usage --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 7c964f9..63b47a1 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -16,7 +16,7 @@ pub mod tx; pub mod smoltcp_phy; /// Max raw frame array size -pub const RAW_FRAME_LENGTH_MAX: usize = 0x1000; +pub const RAW_FRAME_LENGTH_MAX: usize = 1518; pub trait EthController { fn init_dev(&mut self, delay: &mut impl DelayUs) -> Result<(), EthControllerError>;