aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authordiogo464 <[email protected]>2025-12-05 19:29:44 +0000
committerdiogo464 <[email protected]>2025-12-05 19:29:44 +0000
commitb609a315e7921dcc712da6955890f4dc7c2c4b9f (patch)
tree1f2b120b1beaf36c91fb74aba876f1812313307a /examples
parent52705a80a5012aa48cec9ddf61898596e96c9dfd (diff)
added publish_on_command option to switch
Diffstat (limited to 'examples')
-rw-r--r--examples/switch.rs1
1 files changed, 0 insertions, 1 deletions
diff --git a/examples/switch.rs b/examples/switch.rs
index 49ff353..0571758 100644
--- a/examples/switch.rs
+++ b/examples/switch.rs
@@ -41,7 +41,6 @@ async fn main_task(spawner: Spawner) {
41async fn switch_task(mut switch: embassy_ha::Switch<'static>) { 41async fn switch_task(mut switch: embassy_ha::Switch<'static>) {
42 loop { 42 loop {
43 let state = switch.wait().await; 43 let state = switch.wait().await;
44 switch.set(state);
45 44
46 println!("state = {}", state); 45 println!("state = {}", state);
47 Timer::after_secs(1).await; 46 Timer::after_secs(1).await;