add note to serial console that console has moved to USB

this makes it clear that when USB is plugged in, the console
session on the hard serial port migrates to the USB serial port.
This commit is contained in:
bunnie 2026-01-14 03:08:41 +08:00
parent d1d0998800
commit 7b697c0918

View file

@ -246,6 +246,7 @@ pub unsafe extern "C" fn rust_entry() -> ! {
crate::println_d!("new state {:?}", new_usb_state);
if new_usb_state == UsbDeviceState::Configured {
crate::println!("USB is connected!");
crate::println!("Console moved to USB serial");
last_usb_state = new_usb_state;
USB_CONNECTED.store(true, core::sync::atomic::Ordering::SeqCst);
if let Some(ref mut sh1107) = oled {