From 17b9eb5f86fe35a0951d90752fd99ca2d63783cb Mon Sep 17 00:00:00 2001 From: Bob McWhirter Date: Mon, 15 Aug 2022 11:07:46 -0400 Subject: [PATCH] Update signal.rs Allow `poll_wait` to be public so higher-order futures around Signal can be built. --- embassy-util/src/channel/signal.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/embassy-util/src/channel/signal.rs b/embassy-util/src/channel/signal.rs index a58469c4..ff53934e 100644 --- a/embassy-util/src/channel/signal.rs +++ b/embassy-util/src/channel/signal.rs @@ -69,7 +69,7 @@ impl Signal { }) } - fn poll_wait(&self, cx: &mut Context<'_>) -> Poll { + pub fn poll_wait(&self, cx: &mut Context<'_>) -> Poll { critical_section::with(|_| unsafe { let state = &mut *self.state.get(); match state {