Skip to content

Commit

Permalink
Explain transmute
Browse files Browse the repository at this point in the history
  • Loading branch information
bugadani committed Oct 20, 2023
1 parent e01f9b4 commit f831407
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion esp-wifi/src/wifi/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit f831407

Please sign in to comment.