mirror of
https://github.com/esp-rs/esp-hal.git
synced 2025-10-02 06:40:47 +00:00
Convert into c_char (#2837)
This commit is contained in:
parent
f7c1bdbfc5
commit
f2b958b501
@ -1628,7 +1628,7 @@ pub(crate) fn wifi_start() -> Result<(), WifiError> {
|
||||
cntry_code[2] = crate::CONFIG.country_code_operating_class;
|
||||
|
||||
let country = wifi_country_t {
|
||||
cc: core::mem::transmute::<[u8; 3], [i8; 3]>(cntry_code), // [u8] -> [i8] conversion
|
||||
cc: core::mem::transmute::<[u8; 3], [core::ffi::c_char; 3]>(cntry_code),
|
||||
schan: 1,
|
||||
nchan: 13,
|
||||
max_tx_power: 20,
|
||||
|
Loading…
x
Reference in New Issue
Block a user