maybe work?

This commit is contained in:
0m.ax 2025-07-20 02:05:33 +02:00
parent 23db40c577
commit 65fca6a5b2

View file

@ -348,11 +348,12 @@ fn main() {
if number_of_bytes == 4 {
// Unpack the buffer into coordinates.
if let Some((x_rev, y_rev)) = unpack_coordinates(&buf) {
let x_32:u32 = x_rev.into();
println!("Received Coordinates: X = {}, Y = {}", x_rev, y_rev); let x_32:u32 = x_rev.into();
let y_32:u32 = y_rev.into();
*x_thread.lock().unwrap() = x_32;
*y_thread.lock().unwrap() = y_32;
println!("Received Coordinates: X = {}, Y = {}", x_rev, y_rev);
} else {
// This case should ideally not be reached if number_of_bytes is 4.