From 32852a6af9139c7c899901fe3dc8724c404b73ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20J=C3=B6rdens?= Date: Fri, 2 Oct 2020 18:42:41 +0200 Subject: [PATCH] main: hex usb serial --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 0a098b9c..e1c4a58c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -406,7 +406,7 @@ const APP: () = { let octets = settings.mac().octets; write!( &mut serial_string, - "{}-{}-{}-{}-{}-{}", + "{:02x}-{:02x}-{:02x}-{:02x}-{:02x}-{:02x}", octets[0], octets[1], octets[2], octets[3], octets[4], octets[5] ) .unwrap();