commit ded1091eb1c07f8cb8409c483e8ba345d7fc1741
parent 438a9c795406791addb838a92aedd7a5258d95dd
Author: Daniel Barlow <dan@telent.net>
Date: Sat, 22 Nov 2025 22:38:48 +0000
ecu: update initialized_at on second command if still open
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/ecu.rs b/src/ecu.rs
@@ -126,8 +126,8 @@ impl Ecu<'_> {
&mut [0x72, 0x05, 0x00, 0xF0, 0x99],
buf).await;
info!("matches {}", handshake == b"\x02\x04\x00\xfa");
- self.initialized_at = Some(Instant::now());
}
+ self.initialized_at = Some(Instant::now());
Self::chat(&mut uart, command, buf).await
}