Explicitly check for the Uthernet II.

If we link against the default Ethernet combo library we can't access the device name before the initialization and we must check explicitly that we found an Uthernet II (with the W5100 chip we rely on here).
This commit is contained in:
Oliver Schmidt 2020-05-12 23:10:56 +02:00
parent 6bd1047a7d
commit 56a5c00ba9

View File

@ -74,11 +74,16 @@ void main(void)
}
}
printf("- %d\n\nInitializing %s ", eth_init, eth_name);
printf("- %d\n\nInitializing ", eth_init);
if (ip65_init(eth_init))
{
error_exit();
}
if (strcmp(eth_name, "Uthernet II"))
{
printf("- No Uthernet II\n");
exit(EXIT_FAILURE);
}
// Abort on Ctrl-C to be consistent with Linenoise
abort_key = 0x83;