Skip to content

Commit 8f6950d

Browse files
authored
Merge pull request #803 from sidey79/define-hardware
wifimanager.cpp / wifimanager.h
2 parents c6591ce + 1282c4d commit 8f6950d

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

WiFiManager.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212

1313
#include "WiFiManager.h"
1414

15+
#if defined(ESP8266) || defined(ESP32)
16+
1517
#ifdef ESP32
1618
uint8_t WiFiManager::_lastconxresulttmp = WL_IDLE_STATUS;
1719
#endif
@@ -2702,3 +2704,5 @@ void WiFiManager::WiFi_autoReconnect(){
27022704
// }
27032705
#endif
27042706
}
2707+
2708+
#endif

WiFiManager.h

+5
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,12 @@
1010
* @license MIT
1111
*/
1212

13+
1314
#ifndef WiFiManager_h
1415
#define WiFiManager_h
1516

17+
#if defined(ESP8266) || defined(ESP32)
18+
1619
#ifdef ESP8266
1720
#include <core_version.h>
1821
#endif
@@ -506,3 +509,5 @@ class WiFiManager
506509
};
507510

508511
#endif
512+
513+
#endif

0 commit comments

Comments
 (0)