From f8314076bb0c0c27e688b6c5df8f4ab544e61ff2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=A1niel=20Buga?= Date: Fri, 20 Oct 2023 10:57:48 +0200 Subject: [PATCH] Explain transmute --- esp-wifi/src/wifi/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esp-wifi/src/wifi/mod.rs b/esp-wifi/src/wifi/mod.rs index 2bb4e78a..33f88fec 100644 --- a/esp-wifi/src/wifi/mod.rs +++ b/esp-wifi/src/wifi/mod.rs @@ -740,7 +740,7 @@ pub fn wifi_start() -> Result<(), WifiError> { cntry_code[2] = crate::CONFIG.country_code_operating_class; let country = wifi_country_t { - cc: core::mem::transmute(cntry_code), + cc: core::mem::transmute(cntry_code), // [u8] -> [i8] conversion schan: 1, nchan: 13, max_tx_power: 20,