mirror of
https://github.com/esphome/esphome.git
synced 2024-12-24 16:58:07 +01:00
Fixed calculation of start and end dhcp range (#4785)
This commit is contained in:
parent
a8b821c213
commit
b19c7d462b
@ -706,6 +706,7 @@ bool WiFiComponent::wifi_ap_ip_config_(optional<ManualIP> manual_ip) {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
struct dhcps_lease lease {};
|
struct dhcps_lease lease {};
|
||||||
|
lease.enable = true;
|
||||||
network::IPAddress start_address = info.ip.addr;
|
network::IPAddress start_address = info.ip.addr;
|
||||||
start_address[3] += 99;
|
start_address[3] += 99;
|
||||||
lease.start_ip.addr = static_cast<uint32_t>(start_address);
|
lease.start_ip.addr = static_cast<uint32_t>(start_address);
|
||||||
|
Loading…
Reference in New Issue
Block a user