mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-15 08:30:02 +00:00
change default value on the null SSID string value
This commit is contained in:
parent
0dbe05dd46
commit
69a8f2777f
1 changed files with 1 additions and 1 deletions
|
|
@ -854,7 +854,7 @@ fn xmain() -> ! {
|
|||
}
|
||||
let ssid_len = u16::from_le_bytes(ssid_buf[0..2].try_into().unwrap()) as usize;
|
||||
let ssid_checked_len = if ssid_len < 32 {ssid_len} else {32};
|
||||
let ssid_str = core::str::from_utf8(&ssid_buf[2..2+ssid_checked_len]).unwrap_or("Invalid SSID");
|
||||
let ssid_str = core::str::from_utf8(&ssid_buf[2..2+ssid_checked_len]).unwrap_or("Disconnected");
|
||||
let status = WlanStatusIpc {
|
||||
ssid: if let Some(rssi) = rssi {
|
||||
Some(SsidRecord {
|
||||
|
|
|
|||
Loading…
Reference in a new issue