mirror of
https://github.com/oliverschmidt/Stream-PDM.git
synced 2024-12-22 15:31:08 +00:00
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:
parent
6bd1047a7d
commit
56a5c00ba9
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user