mirror of
https://github.com/esphome/esphome.git
synced 2024-11-10 01:07:45 +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
|
||||
|
||||
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);
|
||||
|
|
Loading…
Reference in a new issue