[platform][stm32f7xx] make mac address different than eval2

This commit is contained in:
Carlos Pizano
2015-09-11 17:57:08 -07:00
parent 5cb2435ea5
commit f053c3690b

View File

@@ -73,6 +73,7 @@ static uint8_t* gen_mac_address(void) {
for (size_t i = 0; i < sizeof(mac_addr); i++) {
mac_addr[i] = rand() & 0xff;
}
mac_addr[5] += 1;
/* unicast and locally administered */
mac_addr[0] &= ~(1<<0);
mac_addr[0] |= (1<<1);