diff options
| author | diogo464 <[email protected]> | 2025-12-08 20:49:23 +0000 |
|---|---|---|
| committer | diogo464 <[email protected]> | 2025-12-08 20:49:23 +0000 |
| commit | 8ac9ddd2cbc9cf454eae066e5e60d05ee714a83e (patch) | |
| tree | e4797159d8fdae7e8521295fd8178cadc8c2974a /examples | |
| parent | 28d9961141a38ebde8bd6144636c3021eb2755a5 (diff) | |
formatting and improved timeout handling
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/button.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/examples/button.rs b/examples/button.rs index 4a2a228..ea8c4a9 100644 --- a/examples/button.rs +++ b/examples/button.rs | |||
| @@ -20,7 +20,11 @@ async fn main_task(spawner: Spawner) { | |||
| 20 | }, | 20 | }, |
| 21 | ); | 21 | ); |
| 22 | 22 | ||
| 23 | let button = embassy_ha::create_button(&device, "button-sensor-id", embassy_ha::ButtonConfig::default()); | 23 | let button = embassy_ha::create_button( |
| 24 | &device, | ||
| 25 | "button-sensor-id", | ||
| 26 | embassy_ha::ButtonConfig::default(), | ||
| 27 | ); | ||
| 24 | 28 | ||
| 25 | spawner.must_spawn(button_task(button)); | 29 | spawner.must_spawn(button_task(button)); |
| 26 | 30 | ||
