bootloader: fix !has_ethmac

This commit is contained in:
Sebastien Bourdeauducq 2019-11-01 10:17:12 +08:00
parent 42af76326f
commit deadfead2a
1 changed files with 2 additions and 0 deletions

View File

@ -203,6 +203,7 @@ struct NetConn {
firmware_downloaded: bool firmware_downloaded: bool
} }
#[cfg(has_ethmac)]
impl NetConn { impl NetConn {
pub fn new() -> NetConn { pub fn new() -> NetConn {
NetConn { NetConn {
@ -414,6 +415,7 @@ pub extern fn main() -> i32 {
println!("Copyright (c) 2017-2019 M-Labs Limited"); println!("Copyright (c) 2017-2019 M-Labs Limited");
println!(""); println!("");
#[cfg(has_ethmac)]
clock::init(); clock::init();
if startup() { if startup() {