to do soon

This commit is contained in:
2025-07-08 22:24:08 +02:00
parent d2cc61f28f
commit 5853b1f95c

View File

@@ -232,6 +232,15 @@ async fn main(spawner: Spawner) -> ! {
Output::new_for_emio(gpio_pins.emio.take(7).unwrap(), PinState::Low),
];
loop {
// TODO: We have to check our own link state boolean/atomic here instead of the stack
// link. We have to periodically monitor the phy link state, and update the atomic from
// that value.
//
// If the link goes from up to down, we update the atomic and have to periodically check
// whether the link is up again.
//
// If it does from down to up, wait for auto-negotiation to complete, and update the
// atomic from that value.
if !stack.is_link_up() {
loop {
let config_up_fut = stack.wait_config_up();