mirror of
https://github.com/esphome/esphome.git
synced 2024-11-25 08:28:12 +01:00
Fixed calculation of start and end dhcp range (#4785)
This commit is contained in:
parent
a8b821c213
commit
b19c7d462b
1 changed files with 1 additions and 0 deletions
|
@ -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 a new issue