From 655db109c1327d0994ebb1be5bc3d88860d34f15 Mon Sep 17 00:00:00 2001 From: Shawn A Date: Thu, 15 Mar 2018 15:51:47 -0500 Subject: [PATCH] comments --- WiFiManager.cpp | 5 ++--- WiFiManager.h | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/WiFiManager.cpp b/WiFiManager.cpp index 67f2cc3..d95573f 100644 --- a/WiFiManager.cpp +++ b/WiFiManager.cpp @@ -1679,6 +1679,7 @@ void WiFiManager::setSTAStaticIPConfig(IPAddress ip, IPAddress gw, IPAddress sn) /** * [setSTAStaticIPConfig description] + * @since $dev * @access public * @param {[type]} IPAddress ip [description] * @param {[type]} IPAddress gw [description] @@ -1686,9 +1687,7 @@ void WiFiManager::setSTAStaticIPConfig(IPAddress ip, IPAddress gw, IPAddress sn) * @param {[type]} IPAddress dns [description] */ void WiFiManager::setSTAStaticIPConfig(IPAddress ip, IPAddress gw, IPAddress sn, IPAddress dns) { - _sta_static_ip = ip; - _sta_static_gw = gw; - _sta_static_sn = sn; + setSTAStaticIPConfig(IPAddress ip, IPAddress gw, IPAddress sn); _sta_static_dns = dns; } diff --git a/WiFiManager.h b/WiFiManager.h index 45c1e20..734f060 100644 --- a/WiFiManager.h +++ b/WiFiManager.h @@ -249,7 +249,7 @@ class WiFiManager // std:vector _menuids; uint8_t _menuIds[10] = {MENU_WIFI,MENU_INFO,MENU_EXIT}; - // ip configs + // ip configs @todo struct ? IPAddress _ap_static_ip; IPAddress _ap_static_gw; IPAddress _ap_static_sn;