Explorar o código

delete MAC fo service soft

balbekova %!s(int64=7) %!d(string=hai) anos
pai
achega
ef8e9e5e1d
Modificáronse 1 ficheiros con 1 adicións e 11 borrados
  1. 1 11
      thirdparty/lwip/port/FreeRTOS/ethernetif.c

+ 1 - 11
thirdparty/lwip/port/FreeRTOS/ethernetif.c

@@ -112,16 +112,7 @@ static void low_level_init(struct netif *netif)
  
  
   /* set netif MAC hardware address length */
   /* set netif MAC hardware address length */
   netif->hwaddr_len = ETHARP_HWADDR_LEN;
   netif->hwaddr_len = ETHARP_HWADDR_LEN;
-	
-  /* set netif MAC hardware address */
-#ifdef BT6702_SERVICE
-  netif->hwaddr[0] =  MAC[0];
-  netif->hwaddr[1] =  MAC[1];
-  netif->hwaddr[2] =  MAC[2];
-  netif->hwaddr[3] =  MAC[3];
-  netif->hwaddr[4] =  MAC[4];
-  netif->hwaddr[5] =  MAC[5];
-#else
+
   SETTINGS_GetMac(mac);
   SETTINGS_GetMac(mac);
 
 
   netif->hwaddr[0] =  mac[0];
   netif->hwaddr[0] =  mac[0];
@@ -130,7 +121,6 @@ static void low_level_init(struct netif *netif)
   netif->hwaddr[3] =  mac[3];
   netif->hwaddr[3] =  mac[3];
   netif->hwaddr[4] =  mac[4];
   netif->hwaddr[4] =  mac[4];
   netif->hwaddr[5] =  mac[5];
   netif->hwaddr[5] =  mac[5];
-#endif
 
 
   /* set netif maximum transfer unit */
   /* set netif maximum transfer unit */
   netif->mtu = 1500;
   netif->mtu = 1500;