From 7d4279338c851ff216f19bc1bfc8952e602572f3 Mon Sep 17 00:00:00 2001 From: Andy Fiddaman Date: Wed, 22 Jan 2025 10:05:25 +0000 Subject: [PATCH] Disable periodic IPCC zero bytes on Grapefruit --- app/gimletlet/app.toml | 2 +- task/host-sp-comms/src/tx_buf.rs | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/app/gimletlet/app.toml b/app/gimletlet/app.toml index 4c69693a4..5d00583a3 100644 --- a/app/gimletlet/app.toml +++ b/app/gimletlet/app.toml @@ -103,7 +103,7 @@ task-slots = ["jefe"] [tasks.host_sp_comms] name = "task-host-sp-comms" -features = ["stm32h753", "uart7", "baud_rate_3M", "hardware_flow_control", "vlan"] +features = ["gimlet", "stm32h753", "uart7", "baud_rate_3M", "hardware_flow_control", "vlan"] uses = ["uart7", "dbgmcu"] interrupts = {"uart7.irq" = "usart-irq"} priority = 8 diff --git a/task/host-sp-comms/src/tx_buf.rs b/task/host-sp-comms/src/tx_buf.rs index d5d58a125..ab74ead5a 100644 --- a/task/host-sp-comms/src/tx_buf.rs +++ b/task/host-sp-comms/src/tx_buf.rs @@ -139,10 +139,16 @@ impl TxBuf { } /// Should we be sending periodic 0 bytes? + #[cfg(feature = "gimlet")] pub(crate) fn should_send_periodic_zero_bytes(&self) -> bool { matches!(self.state, State::Idle) } + #[cfg(feature = "grapefruit")] + pub(crate) fn should_send_periodic_zero_bytes(&self) -> bool { + false + } + /// Encodes `reason` into our outgoing buffer. /// /// # Panics