diff options
| author | Dion Dokter <[email protected]> | 2024-05-20 15:49:11 +0200 |
|---|---|---|
| committer | Dion Dokter <[email protected]> | 2024-05-20 15:49:11 +0200 |
| commit | f3008597aa7abab6226a5fd47e0ffa233bbd0226 (patch) | |
| tree | bb1eeb8a3280176e20818565784ab4591e4bfbd6 /cyw43/src | |
| parent | 07f2240a197a4a3a66f424e7f0c522d2ec947d38 (diff) | |
Fix cyw43
Diffstat (limited to 'cyw43/src')
| -rw-r--r-- | cyw43/src/runner.rs | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/cyw43/src/runner.rs b/cyw43/src/runner.rs index c72cf0def..e90316302 100644 --- a/cyw43/src/runner.rs +++ b/cyw43/src/runner.rs | |||
| @@ -1,6 +1,5 @@ | |||
| 1 | use embassy_futures::select::{select3, Either3}; | 1 | use embassy_futures::select::{select3, Either3}; |
| 2 | use embassy_net_driver_channel as ch; | 2 | use embassy_net_driver_channel as ch; |
| 3 | use embassy_sync::pubsub::PubSubBehavior; | ||
| 4 | use embassy_time::{block_for, Duration, Timer}; | 3 | use embassy_time::{block_for, Duration, Timer}; |
| 5 | use embedded_hal_1::digital::OutputPin; | 4 | use embedded_hal_1::digital::OutputPin; |
| 6 | 5 | ||
| @@ -438,13 +437,16 @@ where | |||
| 438 | // publish() is a deadlock risk in the current design as awaiting here prevents ioctls | 437 | // publish() is a deadlock risk in the current design as awaiting here prevents ioctls |
| 439 | // The `Runner` always yields when accessing the device, so consumers always have a chance to receive the event | 438 | // The `Runner` always yields when accessing the device, so consumers always have a chance to receive the event |
| 440 | // (if they are actively awaiting the queue) | 439 | // (if they are actively awaiting the queue) |
| 441 | self.events.queue.publish_immediate(events::Message::new( | 440 | self.events |
| 442 | Status { | 441 | .queue |
| 443 | event_type: evt_type, | 442 | .immediate_publisher() |
| 444 | status, | 443 | .publish_immediate(events::Message::new( |
| 445 | }, | 444 | Status { |
| 446 | event_payload, | 445 | event_type: evt_type, |
| 447 | )); | 446 | status, |
| 447 | }, | ||
| 448 | event_payload, | ||
| 449 | )); | ||
| 448 | } | 450 | } |
| 449 | } | 451 | } |
| 450 | CHANNEL_TYPE_DATA => { | 452 | CHANNEL_TYPE_DATA => { |
