forked from M-Labs/artiq
1
0
Fork 0

bootloader: fix compilation warning without Ethernet

This commit is contained in:
Sebastien Bourdeauducq 2023-06-02 10:48:41 +08:00
parent e0ebc1b21d
commit b97f6a9e44
1 changed files with 2 additions and 0 deletions

View File

@ -18,7 +18,9 @@ use board_misoc::slave_fpga;
use board_misoc::{clock, ethmac, net_settings};
use board_misoc::uart_console::Console;
use riscv::register::{mcause, mepc, mtval};
#[cfg(has_ethmac)]
use smoltcp::iface::{Routes, SocketStorage};
#[cfg(has_ethmac)]
use smoltcp::wire::{HardwareAddress, IpAddress, Ipv4Address, Ipv6Address};
fn check_integrity() -> bool {