diff options
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/binary_sensor.rs | 2 | ||||
| -rw-r--r-- | examples/button.rs | 2 | ||||
| -rw-r--r-- | examples/number.rs | 2 | ||||
| -rw-r--r-- | examples/switch.rs | 2 | ||||
| -rw-r--r-- | examples/temperature.rs | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/examples/binary_sensor.rs b/examples/binary_sensor.rs index c0afa4a..7363a6c 100644 --- a/examples/binary_sensor.rs +++ b/examples/binary_sensor.rs | |||
| @@ -34,7 +34,7 @@ async fn main_task(spawner: Spawner) { | |||
| 34 | 34 | ||
| 35 | spawner.must_spawn(binary_sensor_class(sensor)); | 35 | spawner.must_spawn(binary_sensor_class(sensor)); |
| 36 | 36 | ||
| 37 | device.run(&mut stream).await; | 37 | device.run(&mut stream).await.unwrap(); |
| 38 | } | 38 | } |
| 39 | 39 | ||
| 40 | #[embassy_executor::task] | 40 | #[embassy_executor::task] |
diff --git a/examples/button.rs b/examples/button.rs index 3ac1de8..d1d2159 100644 --- a/examples/button.rs +++ b/examples/button.rs | |||
| @@ -24,7 +24,7 @@ async fn main_task(spawner: Spawner) { | |||
| 24 | 24 | ||
| 25 | spawner.must_spawn(button_task(button)); | 25 | spawner.must_spawn(button_task(button)); |
| 26 | 26 | ||
| 27 | device.run(&mut stream).await; | 27 | device.run(&mut stream).await.unwrap(); |
| 28 | } | 28 | } |
| 29 | 29 | ||
| 30 | #[embassy_executor::task] | 30 | #[embassy_executor::task] |
diff --git a/examples/number.rs b/examples/number.rs index 5cad84b..19f11fa 100644 --- a/examples/number.rs +++ b/examples/number.rs | |||
| @@ -39,7 +39,7 @@ async fn main_task(spawner: Spawner) { | |||
| 39 | 39 | ||
| 40 | spawner.must_spawn(number_task(number)); | 40 | spawner.must_spawn(number_task(number)); |
| 41 | 41 | ||
| 42 | device.run(&mut stream).await; | 42 | device.run(&mut stream).await.unwrap(); |
| 43 | } | 43 | } |
| 44 | 44 | ||
| 45 | #[embassy_executor::task] | 45 | #[embassy_executor::task] |
diff --git a/examples/switch.rs b/examples/switch.rs index 815a0f9..49ff353 100644 --- a/examples/switch.rs +++ b/examples/switch.rs | |||
| @@ -34,7 +34,7 @@ async fn main_task(spawner: Spawner) { | |||
| 34 | 34 | ||
| 35 | spawner.must_spawn(switch_task(switch)); | 35 | spawner.must_spawn(switch_task(switch)); |
| 36 | 36 | ||
| 37 | device.run(&mut stream).await; | 37 | device.run(&mut stream).await.unwrap(); |
| 38 | } | 38 | } |
| 39 | 39 | ||
| 40 | #[embassy_executor::task] | 40 | #[embassy_executor::task] |
diff --git a/examples/temperature.rs b/examples/temperature.rs index 4cf0d42..d449cd4 100644 --- a/examples/temperature.rs +++ b/examples/temperature.rs | |||
| @@ -46,7 +46,7 @@ async fn main_task(spawner: Spawner) { | |||
| 46 | spawner.must_spawn(constant_temperature_task(constant_temperature_sensor)); | 46 | spawner.must_spawn(constant_temperature_task(constant_temperature_sensor)); |
| 47 | spawner.must_spawn(random_temperature_task(random_temperature_sensor)); | 47 | spawner.must_spawn(random_temperature_task(random_temperature_sensor)); |
| 48 | 48 | ||
| 49 | device.run(&mut stream).await; | 49 | device.run(&mut stream).await.unwrap(); |
| 50 | } | 50 | } |
| 51 | 51 | ||
| 52 | #[embassy_executor::task] | 52 | #[embassy_executor::task] |
