aboutsummaryrefslogtreecommitdiff
path: root/examples/button.rs
diff options
context:
space:
mode:
authordiogo464 <[email protected]>2025-12-08 20:49:23 +0000
committerdiogo464 <[email protected]>2025-12-08 20:49:23 +0000
commit8ac9ddd2cbc9cf454eae066e5e60d05ee714a83e (patch)
treee4797159d8fdae7e8521295fd8178cadc8c2974a /examples/button.rs
parent28d9961141a38ebde8bd6144636c3021eb2755a5 (diff)
formatting and improved timeout handling
Diffstat (limited to 'examples/button.rs')
-rw-r--r--examples/button.rs6
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