Commit 2b759948 authored by Joseph Noir's avatar Joseph Noir

Add fix for mac_address on stm32f4discovery

Fix for our current testing board only. RIOT will offer an implementation
in the future.
parent 18ab2e26
...@@ -148,6 +148,26 @@ std::vector<iface_info> get_mac_addresses() { ...@@ -148,6 +148,26 @@ std::vector<iface_info> get_mac_addresses() {
} // namespace detail } // namespace detail
} // namespace caf } // namespace caf
#elif defined(__RIOTBUILD_FLAG)
#include <vector>
namespace caf {
namespace detail {
std::vector<iface_info> get_mac_addresses() {
// we are currently working with the stm32f4discovery
// which does not have a transceiver module
// so here is our random mac address
// as it should be (http://xkcd.com/221/)
std::vector<iface_info> result;
result.push_back({"RIOT_DUMMY_MAC","4"});
return result;
}
} // namespace detail
} // namespace caf
#else #else
// windows // windows
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment