Closed trainfozz closed 1 year ago
Dev 4.2.23
Fails to compile when a static ip-address is configured in config.h
A successful compiling
No response
Clone Arduino Mega2560 Keystudio W5500 2x motorshiled IBT-2
In co-ordination with the team on discord a solution is allready there. The eror is in EthernetInterface.cpp starting at line 138. It says:
setLocalIP(IP_ADDRESS); // for static IP, set it again
When compiling the IDE reports the following error: 'setLocalIP(IP_ADDRESS); is not declared in theis scope.
To solve this it should be like this:
Ethernet.setLocalIP(IP_ADDRESS); // for static IP, set it again
Hope this can be corrected asap.
commit 45cf610028f9d8fc27ffe4859f148beeb7dd119d Author: Harald Barth haba@kth.se Date: Fri Mar 10 17:49:51 2023 +0100
Bugfix Ethernet shield: Static IP now possible
Version
Dev 4.2.23
Bug description
Fails to compile when a static ip-address is configured in config.h
Steps to reproduce the bug
Expected behaviour
A successful compiling
Screenshots
No response
Hardware in use
Clone Arduino Mega2560 Keystudio W5500 2x motorshiled IBT-2
Additional context
In co-ordination with the team on discord a solution is allready there. The eror is in EthernetInterface.cpp starting at line 138. It says:
ifdef IP_ADDRESS
setLocalIP(IP_ADDRESS); // for static IP, set it again
endif
When compiling the IDE reports the following error: 'setLocalIP(IP_ADDRESS); is not declared in theis scope.
To solve this it should be like this:
ifdef IP_ADDRESS
Ethernet.setLocalIP(IP_ADDRESS); // for static IP, set it again
endif
Hope this can be corrected asap.