[En-Nut-Discussion] SVN compilation fix: lanc111.c

Harald Kipp harald.kipp at egnite.de
Sun Oct 18 19:31:57 CEST 2009


Forget this one.

Harald Kipp wrote:
> for (;;) {
>   int i;
> 
>   for (i = 0; i < sizeof(ifn->if_mac); i++) {
>     if (ifn->if_mac[i] && ifn->if_mac[i] != 0xFF) {
>       break;
>     }
>   }
>   if (i < sizeof(ifn->if_mac)) {
>     break;
>   }
>   NutSleep(63);
> }

We now have ETHER_IS_UNICAST(). Ergo

while (!ETHER_IS_UNICAST(ifn->if_mac)) {
  NutSleep(63);
}

Harald



More information about the En-Nut-Discussion mailing list