aboutsummaryrefslogtreecommitdiff
path: root/examples/switch.rs
diff options
context:
space:
mode:
authordiogo464 <[email protected]>2025-12-05 19:29:52 +0000
committerdiogo464 <[email protected]>2025-12-05 19:29:52 +0000
commit3a3d635adddf5cb16a93827e688e061613a083d7 (patch)
treee6be0a075f80d5cfb11b1882e0086727bfe699e9 /examples/switch.rs
parentb609a315e7921dcc712da6955890f4dc7c2c4b9f (diff)
reworked logging
Diffstat (limited to 'examples/switch.rs')
-rw-r--r--examples/switch.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/switch.rs b/examples/switch.rs
index 0571758..67767d7 100644
--- a/examples/switch.rs
+++ b/examples/switch.rs
@@ -41,8 +41,7 @@ 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 44 tracing::info!("state = {}", state);
45 println!("state = {}", state);
46 Timer::after_secs(1).await; 45 Timer::after_secs(1).await;
47 } 46 }
48} 47}