flashed MAC address doesn't work

This commit is contained in:
Sebastien Bourdeauducq 2017-08-06 19:12:10 +08:00
parent 68eb1cdbba
commit d18712d1be

View File

@ -137,7 +137,8 @@ fn main() {
|_| |_|
"#); "#);
let hardware_addr = EthernetAddress(board::get_mac_address()); //let hardware_addr = EthernetAddress(board::get_mac_address());
let hardware_addr = EthernetAddress([0x10, 0xE2, 0xD5, 0x22, 0x23, 0x12]);
let mut protocol_addrs = [IpAddress::v4(192, 168, 69, 1)]; let mut protocol_addrs = [IpAddress::v4(192, 168, 69, 1)];
println!("MAC {} IP {}", hardware_addr, protocol_addrs[0]); println!("MAC {} IP {}", hardware_addr, protocol_addrs[0]);
let mut arp_cache_entries: [_; 8] = Default::default(); let mut arp_cache_entries: [_; 8] = Default::default();