core::fmt devours your RAM and flash and explodes your stack. (#1708)

This commit is contained in:
Dario Nieuwenhuis 2023-07-28 23:47:07 +02:00 committed by GitHub
parent e3cc0d168c
commit 29acc46501
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,5 +1,4 @@
use ch::driver::LinkState; use ch::driver::LinkState;
use defmt::Debug2Format;
use embassy_net_driver_channel as ch; use embassy_net_driver_channel as ch;
use heapless::String; use heapless::String;
@ -57,7 +56,6 @@ impl<'a> Control<'a> {
let proto::CtrlMsgPayload::RespConnectAp(resp) = resp.payload.unwrap() else { let proto::CtrlMsgPayload::RespConnectAp(resp) = resp.payload.unwrap() else {
panic!("unexpected resp") panic!("unexpected resp")
}; };
debug!("======= {:?}", Debug2Format(&resp));
assert_eq!(resp.resp, 0); assert_eq!(resp.resp, 0);
self.state_ch.set_link_state(LinkState::Up); self.state_ch.set_link_state(LinkState::Up);
} }