main: don't log expected failure, log MAC to semihosting
This commit is contained in:
parent
2d2e7e80e0
commit
f64e4fe2f3
@ -129,8 +129,9 @@ fn main() -> ! {
|
|||||||
writeln!(stdout, "ADC id: {:04X}", id).unwrap();
|
writeln!(stdout, "ADC id: {:04X}", id).unwrap();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
Ok(id) =>
|
Ok(id) => {
|
||||||
writeln!(stdout, "Corrupt ADC id: {:04X}", id).unwrap(),
|
// This always happens on the first attempt. So retry silently
|
||||||
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
writeln!(stdout, "AD7172: setting checksum mode").unwrap();
|
writeln!(stdout, "AD7172: setting checksum mode").unwrap();
|
||||||
@ -159,8 +160,9 @@ fn main() -> ! {
|
|||||||
let mut pid_enabled = false;
|
let mut pid_enabled = false;
|
||||||
|
|
||||||
let mut hardware_addr = EthernetAddress(board::get_mac_address());
|
let mut hardware_addr = EthernetAddress(board::get_mac_address());
|
||||||
|
writeln!(stdout, "MAC address: {}", hardware_addr).unwrap();
|
||||||
if hardware_addr.is_multicast() {
|
if hardware_addr.is_multicast() {
|
||||||
println!("programmed MAC address is invalid, using default");
|
writeln!(stdout, "programmed MAC address is invalid, using default").unwrap();
|
||||||
hardware_addr = EthernetAddress([0x10, 0xE2, 0xD5, 0x00, 0x03, 0x00]);
|
hardware_addr = EthernetAddress([0x10, 0xE2, 0xD5, 0x00, 0x03, 0x00]);
|
||||||
}
|
}
|
||||||
let mut ip_addrs = [IpCidr::new(IpAddress::v4(192, 168, 1, 26), 24)];
|
let mut ip_addrs = [IpCidr::new(IpAddress::v4(192, 168, 1, 26), 24)];
|
||||||
|
Loading…
Reference in New Issue
Block a user