CubeMX 6.0.0 LwIP generates ethernetif.c that does not compile
It looks like a simple refactor bug. The ethernet_link_check_state function includes the line:
struct netif *netif = (struct netif *) argument;
but argument does not exist and netif is the name of the function argument. I assume a previous version had argument passed in as a void*. Deleting the line seems sufficient to fix it. Is there a way I can fix it so that it persists across a regeneration?