1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-03 20:02:22 +01:00

Fixed calculation of start and end dhcp range (#4785)

This commit is contained in:
Jimmy Hedman
2023-05-10 03:03:43 +02:00
committed by GitHub
parent a8b821c213
commit b19c7d462b

View File

@@ -706,6 +706,7 @@ bool WiFiComponent::wifi_ap_ip_config_(optional<ManualIP> manual_ip) {
#endif
struct dhcps_lease lease {};
lease.enable = true;
network::IPAddress start_address = info.ip.addr;
start_address[3] += 99;
lease.start_ip.addr = static_cast<uint32_t>(start_address);