newHeiko / wiFred

wiThrottle-compatible hardware controller
GNU General Public License v3.0
21 stars 8 forks source link

Fix fallback server IP address for networks not /24 #58

Closed newHeiko closed 10 months ago

newHeiko commented 1 year ago

Right now: 172.16.0.12 tries 172.16.0.1 (good) but 172.16.1.12 tries 172.16.1.1 (bad, should be ...0.1 as well for /16 networks)

https://github.com/newHeiko/wiFred/blob/31c557c650bfe3e20f50f8b58b73f80d601bfabb/software/esp-firmware/locoHandling.cpp#L332C1-L334C72