eculocate

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

commit 1cbb935e51269ee6d864af59046cefa82419b4c8
parent bfecc7f4bf7ff3eac53fdacbc9e01220694e03b8
Author: Daniel Barlow <dan@telent.net>
Date:   Sat, 27 Dec 2025 20:55:49 +0000

rename variable

Diffstat:
Mecu-esp32/src/wifi.rs | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/ecu-esp32/src/wifi.rs b/ecu-esp32/src/wifi.rs @@ -223,7 +223,7 @@ async fn send_response(sock: &UdpSocket<'_>, flags.set_qr(MessageType::Reply); flags.set_authoritative(true); - let advert_message = Message::new( + let message = Message::new( id, flags, questions, @@ -233,11 +233,11 @@ async fn send_response(sock: &UdpSocket<'_>, let mut data_buf = [0; 4096]; // Serialize the message into the buffer - assert!(advert_message.space_needed() <= data_buf.len()); + assert!(message.space_needed() <= data_buf.len()); // info!("ready to send to {:?}", endpoint); - match advert_message.write(&mut data_buf) { + match message.write(&mut data_buf) { Result::Ok(len) => { if let Result::Err(x) = sock.send_to(&data_buf[..len], endpoint).await { info!("sock.send failed: {:?}", x);