eculocate

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

commit 235dd59bdc9aaeae4ce3d243a4af9592382a750f
parent c625dc22ee9b1941982d45e7dd763f4ccee991f7
Author: Daniel Barlow <dan@telent.net>
Date:   Sun, 18 Jan 2026 23:16:39 +0000

delete unused and commented-out code

Diffstat:
Mecu-esp32/src/main.rs | 14+-------------
Mecu-esp32/src/wifi.rs | 2+-
2 files changed, 2 insertions(+), 14 deletions(-)

diff --git a/ecu-esp32/src/main.rs b/ecu-esp32/src/main.rs @@ -27,7 +27,7 @@ use embassy_time::Timer; use log::{info}; use crate::ecu::{ - Ecu, Measure + Ecu }; extern crate alloc; @@ -62,23 +62,11 @@ async fn main(s : Spawner) { peripherals.GPIO20, peripherals.UART0 ); - // wibble::run_ble(peripherals.BT, ecu).await; join( crate::wifi::start_wifi(&s, peripherals.WIFI, &mut ecu), async { loop { - // let c = async |measure| { - // match measure { - // Measure::Rpm(v) => { - // info!("got rpm {v}"); - // }, - // Measure::Tps(mv, percentage) => { - // info!("got tps {mv} {percentage}"); - // } - // } - // }; - // let _ = &ecu.poll(c).await; Timer::after_millis(1000).await; } }).await; diff --git a/ecu-esp32/src/wifi.rs b/ecu-esp32/src/wifi.rs @@ -284,7 +284,7 @@ async fn run_tcp_handler(stack : Stack<'_>) { b"ROM0" => { info!("OTA request"); let mut len_bytes = [0u8; 4]; - let n = read_all(&mut socket, &mut len_bytes[..], 4).await; + let _n = read_all(&mut socket, &mut len_bytes[..], 4).await; let len = u32::from_be_bytes(len_bytes); info!("reading {} bytes", len); write_ota(&mut socket, len as usize).await;