diff options
| author | diogo464 <[email protected]> | 2025-12-05 16:30:21 +0000 |
|---|---|---|
| committer | diogo464 <[email protected]> | 2025-12-05 16:30:21 +0000 |
| commit | 1fc7ac328e4828a208be56fd574e81156d81117f (patch) | |
| tree | 83603cab8a454ef7bfa11be93ea31317f7a57a4a /examples/binary_sensor.rs | |
| parent | 51027d838eb4fbf298c546b163d650a5b0eb2599 (diff) | |
improved error handling and log messages
Diffstat (limited to 'examples/binary_sensor.rs')
| -rw-r--r-- | examples/binary_sensor.rs | 2 |
1 files changed, 1 insertions, 1 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] |
