eculocate

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit 438a9c795406791addb838a92aedd7a5258d95dd
parent b85f71c43ccc1429e0cab77d642b47319c0a6552
Author: Daniel Barlow <dan@telent.net>
Date:   Sat, 22 Nov 2025 22:20:14 +0000

remove busy-loop that was starving ble of cpu

Diffstat:
Msrc/main.rs | 12++----------
1 file changed, 2 insertions(+), 10 deletions(-)

diff --git a/src/main.rs b/src/main.rs @@ -49,18 +49,10 @@ async fn main(_s : Spawner) { info!("let's go!"); - let mut ecu = ecu::Ecu::new( + let ecu = ecu::Ecu::new( peripherals.GPIO21, peripherals.GPIO20, peripherals.UART0 ); - - let _ = join( - wibble::run_ble(peripherals.BT), - async { - info!("first"); - ecu.do_stuff().await; - loop { } - } - ).await; + wibble::run_ble(peripherals.BT, ecu).await; }