bootloader: fix !has_ethmac

pull/1387/head
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
}
#[cfg(has_ethmac)]
impl NetConn {
pub fn new() -> NetConn {
NetConn {
@ -414,6 +415,7 @@ pub extern fn main() -> i32 {
println!("Copyright (c) 2017-2019 M-Labs Limited");
println!("");
#[cfg(has_ethmac)]
clock::init();
if startup() {