From 608eb9b1fde5c2d6c5e8f4f5732379de22c2e6c1 Mon Sep 17 00:00:00 2001 From: kbleeke Date: Thu, 30 Mar 2023 17:09:12 +0200 Subject: [PATCH] event queue mutexs can be noop because we are already !Sync in other places --- src/events.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/events.rs b/src/events.rs index b9c8cca6b..87f6c01a3 100644 --- a/src/events.rs +++ b/src/events.rs @@ -3,7 +3,7 @@ use core::num; -use embassy_sync::blocking_mutex::raw::CriticalSectionRawMutex; +use embassy_sync::blocking_mutex::raw::NoopRawMutex; use embassy_sync::pubsub::{PubSubChannel, Publisher, Subscriber}; #[derive(Debug, Clone, Copy, PartialEq, Eq, num_enum::FromPrimitive)] @@ -284,9 +284,9 @@ pub enum Event { LAST = 190, } -pub type EventQueue = PubSubChannel; -pub type EventPublisher<'a> = Publisher<'a, CriticalSectionRawMutex, EventStatus, 2, 1, 1>; -pub type EventSubscriber<'a> = Subscriber<'a, CriticalSectionRawMutex, EventStatus, 2, 1, 1>; +pub type EventQueue = PubSubChannel; +pub type EventPublisher<'a> = Publisher<'a, NoopRawMutex, EventStatus, 2, 1, 1>; +pub type EventSubscriber<'a> = Subscriber<'a, NoopRawMutex, EventStatus, 2, 1, 1>; #[derive(Clone, Copy)] #[cfg_attr(feature = "defmt", derive(defmt::Format))]