7f295285da
28: Read MAC address from EEPROM r=jordens a=cjbe Try and read the unique MAC address from EEPROM. If the EEPROM can not be read (e.g. on the unpatched hardware version 1.0 where the EEPROM is unpowered) a hardcoded default of 10:E2:D5:00:03:00 is used. The MAC address found / used is logged. At the moment the only way of accessing this log is via semihosting. Closes #23 30: build(deps): bump serde from 1.0.99 to 1.0.100 r=jordens a=dependabot-preview[bot] Bumps [serde](https://github.com/serde-rs/serde) from 1.0.99 to 1.0.100. <details> <summary>Release notes</summary> *Sourced from [serde's releases](https://github.com/serde-rs/serde/releases).* > ## v1.0.100 > - Provide `serde::ser::StdError` and `serde:🇩🇪:StdError` which are either a re-export of `std::error::Error` (if Serde's "std" feature is enabled) or a new identical trait (otherwise). > > ```rust > #[cfg(feature = "std")] > pub use std::error::Error as StdError; > > #[cfg(not(feature = "std"))] > pub trait StdError: Debug + Display { > fn source(&self) -> Option<&(StdError + 'static)> { None } > } > ``` > > Serde's error traits `serde::ser::Error` and `serde:🇩🇪:Error` require `std::error::Error` as a supertrait, but only when Serde is built with "std" enabled. Data formats that don't care about no\_std support should generally provide their error types with a `std::error::Error` impl directly: > > ```rust > #[derive(Debug)] > struct MySerError {...} > > impl serde::ser::Error for MySerError {...} > > impl std::fmt::Display for MySerError {...} > > // We don't support no_std! > impl std::error::Error for MySerError {} > ``` > > Data formats that *do* support no\_std may either have a "std" feature of their own as has been required in the past: > > ```toml > [features] > std = ["serde/std"] > ``` > > ```rust > #[cfg(feature = "std")] > impl std::error::Error for MySerError {} > ``` > > ... or else now may provide the std Error impl unconditionally via Serde's re-export: > > ```rust > impl serde::ser::StdError for MySerError {} > ``` </details> <details> <summary>Commits</summary> - [`b6a77c4`]( |
||
---|---|---|
.. | ||
eeprom.rs | ||
eth.rs | ||
i2c.rs | ||
iir.rs | ||
main.rs |